Skip to content

A lightweight API service for TTS and translation, with automatic language classification for voice selection.

Notifications You must be signed in to change notification settings

humanova/edge-speak

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 lightweight API service for TTS and translation, with automatic language classification for voice selection.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •