https://github.com/horihiro/esp8266-google-tts
https://github.com/horihiro/esp8266-google-tts
esp8266 google text2speech texttospeech tts
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/horihiro/esp8266-google-tts
- Owner: horihiro
- License: mit
- Created: 2018-03-13T21:34:07.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T16:39:26.000Z (over 1 year ago)
- Last Synced: 2025-03-26T20:21:21.798Z (about 1 month ago)
- Topics: esp8266, google, text2speech, texttospeech, tts
- Language: C++
- Size: 71.3 KB
- Stars: 77
- Watchers: 10
- Forks: 21
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# esp8266-google-tts
Simple Google TTS Library for esp8266.This library generates the link to speech mp3 file from text using Google Translate Service.
[This](https://qiita.com/horihiro/items/d64b699d06605ad44646) is the Japanese document on [Qiita.com](https://qiita.com/);
## Install
This library can be installed from the Library Manager on Arduino IDE
## Usage
```
#include
#includeconst char* ssid = "";
const char* password = "";void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("");
WiFi.mode(WIFI_STA); WiFi.begin(ssid, password);while (WiFi.status() != WL_CONNECTED) {
delay(250);
Serial.print(".");
}TTS tts;
Serial.println(tts.getSpeechUrl("こんにちは、世界!", "ja"));
Serial.println(tts.getSpeechUrl("Hello, World!"));}
void loop() {
// put your main code here, to run repeatedly:}
```