retico-googletts
This project contains the incremental module for running Google Cloud TTS in a retico environment. Google TTS provides multiple languages and voices, which can be looked up here.
The current implementation of the TTS module is not strictly incremental, as a new input triggers a complete resynthesizing of the speech.
Installing
In order to properly use the Text-To-Speech module, you must install two other external software.
gcloud
This is to connect you to GCP's (Google Cloud Platform) resources and services which you can install here.
ffmpeg
This is for converting the received MP3 audio from Google's Text-To-Speech synthesizer into a PCM format which can be installed here.
After installing both external software, you can now install the package with
$ pip install git+https://github.com/retico-team/retico-googletts
GoogleTTS Example
from retico_core import *
from retico_googleasr import *
from retico_googletts import *
def callback(update_msg):
for x, ut in update_msg:
print(f"{ut}: {x.text} ({x.stability}) - {x.final}")
mic = audio.MicrophoneModule()
asr = GoogleASRModule(rate=16_000)
td = text.TextDispatcherModule()
tts = GoogleTTSModule(language_code="en-US", voice_name="en-US-Standard-G")
ad = audio.AudioDispatcherModule(target_frame_length=0.2)
ss = audio.StreamingSpeakerModule(frame_length=0.2)
cb = debug.CallbackModule(callback)
mic.subscribe(asr)
asr.subscribe(td)
td.subscribe(tts)
tts.subscribe(ad)
asr.subscribe(cb)
ad.subscribe(ss)
mic.run()
asr.run()
td.run()
tts.run()
ad.run()
ss.run()
cb.run()
print("Running")
input()
mic.stop()
asr.stop()
td.stop()
tts.stop()
ad.stop()
ss.stop()
cb.stop()
Metadata
Release files for retico-googletts 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| retico_googletts-1.0.0.tar.gz | 17.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| retico_googletts-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.8 kB
Release files / retico_googletts-1.0.0.tar.gz
| Download URL | retico_googletts-1.0.0.tar.gz |
|---|---|
| Size | 17.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5314e5151c6726c2d4f65b8048e86a485cacd90541734240abd01357cb1b6f42
|
|
BLAKE2b-256 checksum How to use checksums |
e399c481a197a247251f51f86c22aa374441311ad3f0f1475523dff3943589b8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / retico_googletts-1.0.0-py3-none-any.whl
| Download URL | retico_googletts-1.0.0-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c04338badb726688cf14167f887924796487f96959319f8d4a78278fba3941de
|
|
BLAKE2b-256 checksum How to use checksums |
d28b3e74436cf0fd2bfe56031c0ffbc54ff55ac07ba445c34a6ef56b52109e60
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency log