Replies: 1 comment
-
|
I have a few quick questions:
where f5-tts_infer-cli
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a newbie in this kind of stuff,
I have two computers
So I make this code to convert string into a wav file
`import subprocess
import sys
from pathlib import Path
from playsound import playsound
def main():
# 1) Get the text passed from Unreal (command line argument)
if len(sys.argv) < 2:
print("Error: No text provided. Usage: python run.py "Your text here"")
sys.exit(1)
user_text = sys.argv[1]
if name == "main":
main()`
What I do to convert string into a wav file is running this code:
python .\run.py "hello there"It works on my first computer.
But on my second computer, I can't convert the string to a wav file:
`...F5-TTS> python .\run.py "hello there"
command:
['f5-tts_infer-cli', '--model', 'F5TTS_v1_Base', '--ref_audio', 'C:\Users\user\Documents\Unreal Projects\JobSimulator\F5-TTS\F5-TTS\F5-TTS-main\audio-references\basic_ref_en.wav', '--gen_text', 'hello there']
Traceback (most recent call last):
File "C:\Users\user\Documents\Unreal Projects\JobSimulator\F5-TTS\run.py", line 74, in
main()
File "C:\Users\user\Documents\Unreal Projects\JobSimulator\F5-TTS\run.py", line 47, in main
result = subprocess.run(
^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2800.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified`
What am I missing? How do I fix this to make it work like in my first computer?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions