We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to run this in colab , output .mp3 files are empty with no audio. How can I solve this issue?
2024-12-11 13:55:29,027 - audiobook_generator.py:84 - run - INFO - Converting chapter 1/54: Annotation, characters: 507 2024-12-11 13:55:29,028 - piper_tts_provider.py:60 - text_to_speech - INFO - Running Piper TTS command: piper --model /content/voice/en_US-lessac-medium.onnx --speaker 0 --sentence_silence 0.2 --length_scale 1.0 -f /tmp/tmpdh2briv7/piper.wav --debug DEBUG:main:Namespace(model='/content/voice/en_US-lessac-medium.onnx', config=None, output_file='/tmp/tmpdh2briv7/piper.wav', output_dir=None, output_raw=False, speaker=0, length_scale=1.0, noise_scale=None, noise_w=None, cuda=False, sentence_silence=0.2, data_dir=['/content/voice'], download_dir=None, update_voices=False, debug=True) Traceback (most recent call last): File "/usr/local/bin/piper", line 8, in sys.exit(main()) File "/usr/local/lib/python3.10/dist-packages/piper/main.py", line 155, in main voice.synthesize(text, wav_file, **synthesize_args) File "/usr/local/lib/python3.10/dist-packages/piper/voice.py", line 95, in synthesize for audio_bytes in self.synthesize_stream_raw( File "/usr/local/lib/python3.10/dist-packages/piper/voice.py", line 123, in synthesize_stream_raw yield self.synthesize_ids_to_raw( File "/usr/local/lib/python3.10/dist-packages/piper/voice.py", line 166, in synthesize_ids_to_raw audio = self.session.run( File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 266, in run return self._sess.run(output_names, input_feed, run_options) onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid input name: sid 2024-12-11 13:55:30,743 - piper_tts_provider.py:71 - text_to_speech - INFO - Piper TTS command completed, converting /tmp/tmpdh2briv7/piper.wav to mp3 format 2024-12-11 13:55:31,052 - piper_tts_provider.py:80 - text_to_speech - INFO - Conversion completed, output file: /content/o/0001_Annotation.mp3 2024-12-11 13:55:31,053 - audiobook_generator.py:105 - run - INFO - ✅ Converted chapter 1/54: Annotation 2024-12-11 13:55:31,053 - audiobook_generator.py:84 - run - INFO - Converting chapter 2/54: Greg_Bear_Blood_Music, characters: 21 2024-12-11 13:55:31,053 - piper_tts_provider.py:60 - text_to_speech - INFO - Running Piper TTS command: piper --model /content/voice/en_US-lessac-medium.onnx --speaker 0 --sentence_silence 0.2 --length_scale 1.0 -f /tmp/tmpk29jrb1z/piper.wav --debug DEBUG:main:Namespace(model='/content/voice/en_US-lessac-medium.onnx', config=None, output_file='/tmp/tmpk29jrb1z/piper.wav', output_dir=None, output_raw=False, speaker=0, length_scale=1.0, noise_scale=None, noise_w=None, cuda=False, sentence_silence=0.2, data_dir=['/content/voice'], download_dir=None, update_voices=False, debug=True)
The text was updated successfully, but these errors were encountered:
Could you try with the example command and example epub file in Colab?
Sorry, something went wrong.
No branches or pull requests
I'm trying to run this in colab , output .mp3 files are empty with no audio. How can I solve this issue?
2024-12-11 13:55:29,027 - audiobook_generator.py:84 - run - INFO - Converting chapter 1/54: Annotation, characters: 507
2024-12-11 13:55:29,028 - piper_tts_provider.py:60 - text_to_speech - INFO - Running Piper TTS command: piper --model /content/voice/en_US-lessac-medium.onnx --speaker 0 --sentence_silence 0.2 --length_scale 1.0 -f /tmp/tmpdh2briv7/piper.wav --debug
DEBUG:main:Namespace(model='/content/voice/en_US-lessac-medium.onnx', config=None, output_file='/tmp/tmpdh2briv7/piper.wav', output_dir=None, output_raw=False, speaker=0, length_scale=1.0, noise_scale=None, noise_w=None, cuda=False, sentence_silence=0.2, data_dir=['/content/voice'], download_dir=None, update_voices=False, debug=True)
Traceback (most recent call last):
File "/usr/local/bin/piper", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/piper/main.py", line 155, in main
voice.synthesize(text, wav_file, **synthesize_args)
File "/usr/local/lib/python3.10/dist-packages/piper/voice.py", line 95, in synthesize
for audio_bytes in self.synthesize_stream_raw(
File "/usr/local/lib/python3.10/dist-packages/piper/voice.py", line 123, in synthesize_stream_raw
yield self.synthesize_ids_to_raw(
File "/usr/local/lib/python3.10/dist-packages/piper/voice.py", line 166, in synthesize_ids_to_raw
audio = self.session.run(
File "/usr/local/lib/python3.10/dist-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 266, in run
return self._sess.run(output_names, input_feed, run_options)
onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid input name: sid
2024-12-11 13:55:30,743 - piper_tts_provider.py:71 - text_to_speech - INFO - Piper TTS command completed, converting /tmp/tmpdh2briv7/piper.wav to mp3 format
2024-12-11 13:55:31,052 - piper_tts_provider.py:80 - text_to_speech - INFO - Conversion completed, output file: /content/o/0001_Annotation.mp3
2024-12-11 13:55:31,053 - audiobook_generator.py:105 - run - INFO - ✅ Converted chapter 1/54: Annotation
2024-12-11 13:55:31,053 - audiobook_generator.py:84 - run - INFO - Converting chapter 2/54: Greg_Bear_Blood_Music, characters: 21
2024-12-11 13:55:31,053 - piper_tts_provider.py:60 - text_to_speech - INFO - Running Piper TTS command: piper --model /content/voice/en_US-lessac-medium.onnx --speaker 0 --sentence_silence 0.2 --length_scale 1.0 -f /tmp/tmpk29jrb1z/piper.wav --debug
DEBUG:main:Namespace(model='/content/voice/en_US-lessac-medium.onnx', config=None, output_file='/tmp/tmpk29jrb1z/piper.wav', output_dir=None, output_raw=False, speaker=0, length_scale=1.0, noise_scale=None, noise_w=None, cuda=False, sentence_silence=0.2, data_dir=['/content/voice'], download_dir=None, update_voices=False, debug=True)
The text was updated successfully, but these errors were encountered: