Update Uptated-Prototype/TTS-Script-PiperTTS 2nd.py
This commit is contained in:
@@ -38,11 +38,12 @@ try:
|
|||||||
print(result) # Print the amount of chunks
|
print(result) # Print the amount of chunks
|
||||||
except:
|
except:
|
||||||
print("Failed getting Chunk Count")
|
print("Failed getting Chunk Count")
|
||||||
|
'''
|
||||||
try:
|
try:
|
||||||
print(first_chunk.sample_rate)
|
print(first_chunk.sample_rate)
|
||||||
except:
|
except:
|
||||||
print("Failed getting sample rate?")
|
print("Failed getting sample rate?")
|
||||||
'''
|
|
||||||
p = pyaudio.PyAudio()
|
p = pyaudio.PyAudio()
|
||||||
stream = p.open( # Open audio stream with correct settings
|
stream = p.open( # Open audio stream with correct settings
|
||||||
format=p.get_format_from_width(first_chunk.sample_width),
|
format=p.get_format_from_width(first_chunk.sample_width),
|
||||||
|
|||||||
Reference in New Issue
Block a user