Skip to content

About

A text-to-speech web service that utilize Microsoft Edge TTS API. Acts as a middleware, uses language classification to select a voice.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

14 Commits

Folders and files

Repository files navigation

edge-speak

This is a Flask-based web service that provides text-to-speech (TTS) and text translation functionalities. It utilizes the Microsoft Edge TTS API (free to use) for synthesizing speech and the Azure Translator API (2M chars/month free) for text translation.

Demo

esdemo2.mp4

Endpoints

POST /tts

Content-Type: application/json

{
  "text": "A group of owls is called a parliament.",
  "gender": "female",
  "rate": "+15%"
}

Returns an MP3 audio file as a response.


POST /translate

Content-Type: application/json

{
  "text": "Lot sowy jest cichy.",
  "target_language": "de"
}

Returns a JSON object containing the translation result.

{
  "translation": {
    "detectedLanguage": {
      "language": "pl",
      "score": 1.0
    },
    "translations": [
      {
        "text": "Der Flug der Eule ist lautlos.",
        "to": "de"
      }
    ]
  }
}

About

A text-to-speech web service that utilize Microsoft Edge TTS API. Acts as a middleware, uses language classification to select a voice.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages