esp8266 google tts
1.1.0
Einfache Google TTS -Bibliothek für ESP8266.
Diese Bibliothek generiert den Link zu Sprach -MP3 -Datei aus Text mit Google Translate Service.
Dies ist das japanische Dokument auf qiita.com;
Diese Bibliothek kann vom Bibliotheksmanager auf Arduino IDE installiert werden

#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:
}