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
echo 'This sentence is spoken first. This sentence is synthesized while the first sentence is spoken.' | \
./piper --model en_US-lessac-medium.onnx --output-raw | \
aplay -r 22050 -f S16_LE -t raw -
Stream from code (python):
dtype = 'int16'
DeviceId = 3
stream = sd.OutputStream(
samplerate=voice.config.sample_rate,
channels=1,
device = DeviceId,
dtype=dtype
)
stream.start()
for bytes in voice.synthesize_stream_raw(text):
data = np.frombuffer(bytes, dtype=np.int16)
stream.write(data)
Option 2 works but the sound is not as bold as Option 1. Plus the first word is not enunciated as clearly. Both output to the same speaker device.
What might be causing this?
The text was updated successfully, but these errors were encountered:
Tried the examples:
Option 2 works but the sound is not as bold as Option 1. Plus the first word is not enunciated as clearly. Both output to the same speaker device.
What might be causing this?
The text was updated successfully, but these errors were encountered: