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

一个bug #4

Closed
firgk opened this issue May 14, 2024 · 1 comment
Closed

一个bug #4

firgk opened this issue May 14, 2024 · 1 comment

Comments

@firgk
Copy link
Owner

firgk commented May 14, 2024

Exception in thread Thread-290 (make_tts):
Traceback (most recent call last):
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "C:\Users\lgh\git\textsToVideo\main.py", line 27, in make_tts
text_to_voice(contents_double)
File "C:\Users\lgh\git\textsToVideo\deffer.py", line 137, in text_to_voice
filename = _edge_tts(first, second, line)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lgh\git\textsToVideo\deffer.py", line 177, in _edge_tts
sound = AudioSegment.from_mp3(filename)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydub\audio_segment.py", line 796, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\lgh\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] 系统找不到指定的文件。

@firgk
Copy link
Owner Author

firgk commented Jul 7, 2024

已经解决 ffmpeg 的问题

@firgk firgk closed this as completed Jul 7, 2024
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

1 participant