-
Notifications
You must be signed in to change notification settings - Fork 215
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added 48 kHz azure and styletts voice change
- Loading branch information
Showing
8 changed files
with
265 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
current_version = "0.4.19" | ||
current_version = "0.4.20" | ||
|
||
import setuptools | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
if __name__ == "__main__": | ||
import os | ||
from RealtimeTTS import TextToAudioStream, AzureEngine | ||
|
||
def dummy_generator(): | ||
yield "Hey guys! These here are realtime spoken sentences based on local text synthesis. " | ||
yield "With a local, neuronal, cloned voice. So every spoken sentence sounds unique." | ||
|
||
# for normal use with minimal logging: | ||
import os | ||
engine = AzureEngine( | ||
os.environ["AZURE_SPEECH_KEY"], | ||
os.environ["AZURE_SPEECH_REGION"], | ||
audio_format="riff-48khz-16bit-mono-pcm" | ||
) | ||
|
||
stream = TextToAudioStream(engine) | ||
|
||
print("Starting to play stream") | ||
stream.feed(dummy_generator()).play(log_synthesized_text=True) | ||
|
||
engine.shutdown() |
Oops, something went wrong.