Giter Site home page Giter Site logo

mihaylovnikitos / docker-play-speech-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 5 KB

Docker with Flash app and Yandex speechkit for remote play text to speech

License: MIT License

Makefile 11.56% Python 88.44%
python python-3 flask text-to-speech natural-language-understanding yandex-speech docker asyncio

docker-play-speech-api's Introduction

docker-play-speech-api

Docker Yandex speechkit and api for remote play speech

Use: https://github.com/art1415926535/Yandex_speech

  1. Get API‑key for Yandex speech kit: https://developer.tech.yandex.ru/

  2. Run app:

make docker_build
YANDEX_KEY=test PORT=5000 make docker_run

---
python3 -m venv .env
source .env/bin/activate
YANDEX_KEY=test PORT=5000 make run
  1. Example request:
curl -i -H "Content-Type: application/json" -X POST -d '{"text": "Привет!", "speaker":"omazh", "emotion":"good"}' http://127.0.0.1:5000/play
  • text - Text to speech: "з+амок" (before the stressed vowel can be put "+"; the restriction on line length: 2000 bytes);
  • speaker (optional) - Speaker. Female: "jane" (by default), "oksana", "alyss", "omazh". Male: "zahar", "ermil";
  • lang (optional) - Language: "ru‑RU" (by default), "en-US", "tr-TR", "uk-UK";
  • emotion (optional) - The color of the voice: "neutral" (by default), "evil", "good";
  • speed (optional) - Speech tempo: a value between 0.1 (slowest) to 3.0 (fastest).
  1. Shutdown app:
curl -i http://127.0.0.1:5000/kill

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.