You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I would like to thank you for this code. It will help me grately in my quest to create an assistant for my blind grandma.
Nonetheless, I have an issue while running your script. My mic is correctly connected and my speakers too. I have the "listenning..." printed, I talk in my mic but then I have this issue :
Traceback (most recent call last):
File "c:\Users\etien\workflow\jarvis\jarvis.py", line 86, in <module>
text = assistant.listen()
^^^^^^^^^^^^^^^^^^
File "c:\Users\etien\workflow\jarvis\jarvis.py", line 42, in listen
wavfile.write(temp_wav_file.name, fs, audio)
File "C:\Users\etien\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\wavfile\__init__.py", line 106, in write
with open(path, 'w', sample_rate=sample_rate, bits_per_sample=bits_per_sample, fmt=fmt) as wf:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\etien\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\wavfile\__init__.py", line 53, in open
return wavwrite.WavWrite(f, sample_rate=sample_rate, num_channels=num_channels,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\etien\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\wavfile\wavwrite.py", line 53, in __init__
self._data_chunk.fmt_chunk.sample_rate = int(sample_rate)
^^^^^^^^^^^^^^^^
TypeError: only length-1 arrays can be converted to Python scalars
I looked it up, it seems that numpy has depreciated the .int.
Any chance you could help me with that?
Thanks again
Etienne from France
The text was updated successfully, but these errors were encountered:
Hello,
First, I would like to thank you for this code. It will help me grately in my quest to create an assistant for my blind grandma.
Nonetheless, I have an issue while running your script. My mic is correctly connected and my speakers too. I have the "listenning..." printed, I talk in my mic but then I have this issue :
I looked it up, it seems that numpy has depreciated the .int.
Any chance you could help me with that?
Thanks again
Etienne from France
The text was updated successfully, but these errors were encountered: