Skip to main content

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

retico-speechbraintts-0.1.2.tar.gz (8.2 kB view details)

Uploaded Source

File details

Details for the file retico-speechbraintts-0.1.2.tar.gz.

File metadata

  • Download URL: retico-speechbraintts-0.1.2.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for retico-speechbraintts-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c1fb8b20b7551a9b590739c93ee3e65b69866e2a9dc2f8c0003abc1ca69f272a
MD5 f279220fecd16b6feeb15e7a8af27431
BLAKE2b-256 26d7f1e9068d778ee6935dae76b24afe77b607ab74c76aebb27c72cfb2d24a65

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page