Local speechbrain speech synthesis for retico.
Project description
retico-speechbraintts
Local speechbrain speech synthesis for retico.
Installation and requirements
You can install the module via pip:
$ pip install retico-speechbraintts
For this, PyTorch has to be installed:
$ pip install torch
Example
from retico_core import *
import retico_wav2vecasr
import retico_speechbraintts
microphone = audio.MicrophoneModule()
asr = retico_wav2vecasr.Wav2VecASRModule("en")
tts = retico_speechbraintts.SpeechBrainTTSModule("en")
speaker = audio.SpeakerModule(rate=22050)
microphone.subscribe(asr)
asr.subscribe(tts)
tts.subscribe(speaker)
network.run(asr)
print("Running the TTS. Press enter to exit")
input()
network.stop(asr)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file retico-speechbraintts-0.1.0.tar.gz
.
File metadata
- Download URL: retico-speechbraintts-0.1.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cadfb9a7399014657404b40795b8ff4b34fb938b2c3198b5aac17b29b7d108f6 |
|
MD5 | b9ac996a45dea8f05c8d9f6f0a41e020 |
|
BLAKE2b-256 | cf57d1076da431f99d8b6ee9acf802a550986675ca0b5759caa2665e1e71b202 |