-
Notifications
You must be signed in to change notification settings - Fork 16
No voice output #1
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
Comments
First, check your volume levels, haha. But there also might be something wrong with the You could try using Basically in from pydub import AudioSegment
from pydub.playback import play And replace line 71 with: play(AudioSegment.from_mp3("audio.mp3")) And of course you need to |
Thanks. Though have some questions: Adapted the code with your input, t seems the mp3 is not created so can't play it. Maybe better do full review of your code using open-interpreter asking it to document/comment your code (else I will). With better logs and comments it's easier to help troubleshooting. Error now: FileNotFoundError: [Errno 2] No such file or directory: 'audio.mp3' Note: sometimes nothing happens when you start recognize.py and you don't know what's going on |
Not there yet, but just to give you the approach as I see it (it answers now, but should wait for next input) `import openai Using environment variables for OpenAI API keyopenai.api_key = os.getenv('OPENAI_API_KEY') Efficiently check if "wakeup_words.json" exists using Pathwakeup_words_file = Path(file).parent / "wakeup_words.json" with wakeup_words_file.open("r") as f: def detect_wakeup(command: str, wakeup_words: list[str]):
audio_path = Path(file).parent / "audio.mp3" def process_message(message):
while True:
` |
Hi,
Input works fine for me, then I see output appearing but it is not read aloud and I don't see any error either.
Any ideas for troubleshooting?
Thank 8000 s!
S
The text was updated successfully, but these errors were encountered: