esp8266 google tts
1.1.0
Bibliothèque Google TTS simple pour ESP8266.
Cette bibliothèque génère le lien vers le fichier MP3 discours à partir de texte à l'aide de Google Translate Service.
Ceci est le document japonais sur Qiita.com;
Cette bibliothèque peut être installée à partir du gestionnaire de bibliothèque sur Arduino IDE

#include <google-tts.h>
#include <ESP8266WiFi.h>
const char* ssid = "<REPLASE_YOUR_WIFI_SSID>";
const char* password = "<REPLASE_YOUR_WIFI_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:
}