Speech Synthesis at Dragonboard 410c

by sancathon in Circuits > Assistive Tech

84 Views, 0 Favorites, 0 Comments

Speech Synthesis at Dragonboard 410c

instruct-image.png

How to make a Speech Synthesizer using the DragonBoard 410c in very few SIMPLE STEPs!

Python gTTS: Google Text-To-Speech

Site: https://pypi.org/project/gTTS/
+ Rememeber: gTTS needs to access the Internet (should be connected to WiFi)
+ Connection to Internet using WiFi and also check the Dragonboard system DATE (should be updated/correct).

Steps:

1. sudo apt-get install python-pip

2. sudo apt-get install audacity

3. sudo apt-get install mpg123

4. sudo pip install gTTS

5. Run Python:

Linaro> python

>>> from gtts import gTTS

>>> import os

>>> tts = gTTS(text="Hello San Carlos. Welcome to the Sancathon 2018', lang='en')

>>> tts.save("Hello.mp3")

>>> call(["mpg123", "Hello.mp3"]) % Or Call Audacity

In order to play and hear the audio files in a DragonBoard you should have an "Audio USB Adapter" like this one: https://www.amazon.com/Channel-External-Sound-Adap... (Easily found in any computer/hardware store).

HAVE FUN!!!

Author: F. Osório (USP - ICMC)