Speech Synthesis Module
Overview
Used for offline speech synthesis, converting text to audio playback, with a cavity-style speaker.
Technical Specifications
Operating voltage: VCC 3.3V -5V
Module dimensions: 24*48mm
Mounting: 2 plastic building block compatible through-holes
Communication: Serial port, baud rate 9600
Output: Speech synthesis result
Pin Definition
Pin |
Definition |
|---|---|
GND |
Ground |
VCC |
Power |
TX |
Serial transmit |
RX |
Serial receive |
Example Code
Graphical code
from mpython import *
from bluebit import SpeechSynthesis
speech_synthesis = SpeechSynthesis(uart_num=1,pin_tx=Pin.P16,pin_rx=Pin.P15)
speech_synthesis.play('Hard is the Road (No.1) [Tang] Li Bai: Golden goblet of fine wine, ten thousand coins a cup; jade plate of rare delicacies, worth a fortune.')
# note: the last code line was truncated at the right edge of the source screenshot;
# the string literal has been closed here so this snippet is valid Python.
speech_synthesis.release()