Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
#include

const 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:

}
```