Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/horihiro/esp8266-google-tts
https://github.com/horihiro/esp8266-google-tts
esp8266 google text2speech texttospeech tts
Last synced: 10 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-05T16:39:26.000Z (about 1 year ago)
- Last Synced: 2025-01-06T15:41:54.468Z (17 days ago)
- Topics: esp8266, google, text2speech, texttospeech, tts
- Language: C++
- Size: 71.3 KB
- Stars: 78
- Watchers: 11
- Forks: 20
- 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![](./librarymanager.png)
## 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:}
```