-
Notifications
You must be signed in to change notification settings - Fork 20
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
💻Playsound Missing .Wav + Extra Characters from Text Splitting🤖 #5
Comments
The file is being deleted before it's read by playsound? uninstalled playsound-1.3.0 PS C:\talkGPT4All-main> & c:/talkGPT4All-main/.venv/Scripts/Activate.ps1
|
Notes on Possible Solutions Check if your .wav file is valid (try to test other .wav files). Check whether you use the correct character set, use PlaySoundA ("path\file") or PlaySoundW(L"path\file"), or as comment use PlaySound(TEXT("Path\file")). NOTE to use double backslashes in path. Check if there is a redirected folder in the path. |
Hi, after re install of everything, there's still these errors about Cannot specify extra characters after a string enclosed in quotation marks, Text splitted to sentences and strange characters? Then the missing .wav file playsound error. I wonder if you found anything more about it?
TEXT SPLIT AND STRANGE CHARACTERS
Listening...
==> answer: I am an AI language model and do not have the ability to feel emotions or experience physical sensations. However, I am here to assist you with any qu
estions or tasks you may have. How can I help you today?
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\talkGPT4All-main> & c:/talkGPT4All-main/.venv/Scripts/Activate.ps1
(.venv) PS C:\talkGPT4All-main> & c:/talkGPT4All-main/.venv/Scripts/python.exe c:/talkGPT4All-main/src/talkgpt4all/chat.py
==> GPT4All model: mistral-7b-instruct-v0.1.Q4_0.gguf, Whisper model: base
Failed to close the file: "C:\Users\S373NTH\AppData\Local\Temp\talkgpt4all-73qu1lv2.wav"
Traceback (most recent call last):
File "c:\talkGPT4All-main\src\talkgpt4all\chat.py", line 126, in
chat_bot.run()
File "c:\talkGPT4All-main\src\talkgpt4all\chat.py", line 38, in run
self._text_to_voice(answer)
File "c:\talkGPT4All-main\src\talkgpt4all\chat.py", line 74, in _text_to_voice
playsound(tmp_file.name)
File "C:\talkGPT4All-main.venv\Lib\site-packages\playsound.py", line 72, in _playsoundWin
winCommand(u'open {}'.format(sound))
File "C:\talkGPT4All-main.venv\Lib\site-packages\playsound.py", line 64, in winCommand
raise PlaysoundException(exceptionMessage)
playsound.PlaysoundException:
Error 305 for command:
open "C:\Users\S373NTH\AppData\Local\Temp\talkgpt4all-73qu1lv2.wav"
Cannot specify extra characters after a string enclosed in quotation marks.
(.venv) PS C:\talkGPT4All-main>
The text was updated successfully, but these errors were encountered: