Skip to content
No description or website provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/SimpleUsage first commit. Mar 14, 2018
src esp8266 sdk v2.5.0 compatible Apr 11, 2019
.gitignore Initial commit Mar 13, 2018
LICENSE Initial commit Mar 13, 2018
README.md add the link to qiita. May 20, 2018
keywords.txt for releasing 1.0.3 Apr 22, 2018
library.json release 1.0.8 Jun 1, 2019
library.properties release 1.0.8 Jun 1, 2019
librarymanager.png release 1.0.5 Jun 7, 2018

README.md

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 is the Japanese document on Qiita.com;

Install

This library can be installed from the Library Manager on Arduino IDE

Usage

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

}
You can’t perform that action at this time.