Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RealTimeSTT asyncio error on startup #286

Open
rjcoupe opened this issue Jun 28, 2024 · 3 comments
Open

RealTimeSTT asyncio error on startup #286

rjcoupe opened this issue Jun 28, 2024 · 3 comments

Comments

@rjcoupe
Copy link

rjcoupe commented Jun 28, 2024

Describe the bug
On startup, the application successfully opens the websocket and records input, but never seems to do anything with it. An error regarding RealtimeSTT is visible earlier in the logging output.

To Reproduce
Steps to reproduce the behavior:
Install as described in this guide with Python 3.11.9 available, run poetry run 01 to start.

Expected behavior
Application starts up as described in documentation.

Desktop (please complete the following information):

  • OS: MacOS Sonoma 14.5
  • Python Version [e.g. 22] 3.11.9

Additional context

❯ poetry run 01
The currently activated Python version 3.12.3 is not supported by the project (>=3.9,<3.12).
Trying to find and use a compatible version.
Using python3 (3.11.9)
[2024-06-28 11:21:54.760] [ctranslate2] [thread 24649577] [warning] The compute type inferred from the saved model is float16, but the target device or backend do not support efficient float16 computation. The model weights have been automatically converted to use the float32 compute type instead.
[nltk_data] Downloading package punkt to /Users/richard/nltk_data...
[nltk_data]   Unzipping tokenizers/punkt.zip.
Starting server on 0.0.0.0:10001
INFO:     Started server process [16955]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
RealTimeSTT: asyncio - ERROR - Task exception was never retrieved
future: <Task finished name='Task-11' coro=<Device.play_audiosegments() done, defined at /Users/richard/personal/01/software/source/clients/base_device.py:153> exception=FileNotFoundError(2, 'No such file or directory')>
Traceback (most recent call last):
  File "/Users/richard/personal/01/software/source/clients/base_device.py", line 157, in play_audiosegments
    mpv_process = subprocess.Popen(
                  ^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1955, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'mpv'
INFO:     Uvicorn running on http://0.0.0.0:10001 (Press CTRL+C to quit)
INFO:     ('127.0.0.1', 51248) - "WebSocket /" [accepted]
INFO:     connection open

Hold the spacebar to start recording. Press CTRL-C to exit.
                 Recording started...
Recording stopped.
@virtuman
Copy link

virtuman commented Jul 6, 2024

same issue

@GanQiao1990
Copy link

same

@AReid987
Copy link

this may be a python 3.11 issue. I don't know if open interpreter support python 3.12.x yet, but I am going to try to do a build of Open Interpreter with 3.12 and swap poetry for uv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants