You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,当我用google_text_synthesize方法传入ssml时:
File "F:\ChatTTS-Forge\modules\api\impl\google_api.py", line 159, in google_text_synthesize
sf.write(buffer, audio_data, sample_rate, format="wav")
File "C:\Users\Mayn\AppData\Local\Programs\Python\Python310\lib\site-packages\soundfile.py", line 429, in write
channels = data.shape[1]
IndexError: tuple index out of range
ChatGPT的回复是“问题很可能出在传递给soundfile.write()的音频数据的格式和形状上。我们需要确保audio_data的格式是正确的,以便soundfile.write()能够处理它。首先,让我们确保audio_data是一个NumPy数组,并且它的形状适用于soundfile.write()。”
The text was updated successfully, but these errors were encountered:
您好,当我用google_text_synthesize方法传入ssml时:
File "F:\ChatTTS-Forge\modules\api\impl\google_api.py", line 159, in google_text_synthesize
sf.write(buffer, audio_data, sample_rate, format="wav")
File "C:\Users\Mayn\AppData\Local\Programs\Python\Python310\lib\site-packages\soundfile.py", line 429, in write
channels = data.shape[1]
IndexError: tuple index out of range
ChatGPT的回复是“问题很可能出在传递给soundfile.write()的音频数据的格式和形状上。我们需要确保audio_data的格式是正确的,以便soundfile.write()能够处理它。首先,让我们确保audio_data是一个NumPy数组,并且它的形状适用于soundfile.write()。”
The text was updated successfully, but these errors were encountered: