Sign inSign up

ryangrahamnc/speakmachine

By ryangrahamnc

•Updated over 7 years ago

worthless. i only use it for testing deploys

Image
0

10K+

ryangrahamnc/speakmachine repository overview

⁠Speak Machine

Does text to speech and returns the generated mp3. Designed for use as a kube deployment that you issue commands to.

⁠Install and run

docker run -d -p 1140:1140 ryangrahamnc/speakmachine

⁠Generate and save an mp3

curl -X POST --header "Content-Type: application/json" --data '{"lines": [ "hello world", "foo bar" ] }' http://localhost:1140/say | jq -r ".mp3Contents" | base64 --decode > file.mp3

Saves the mp3 as file.mp3

⁠Get the timestamp info for each line

curl -X POST --header "Content-Type: application/json" --data '{"lines": [ "hello world", "foo bar" ] }' http://localhost:1140/say | jq ".lines"
[
  {
    "text": "hello world",
    "start": 0,
    "duration": 1.02,
    "end": 1.02
  },
  {
    "text": "foo bar",
    "start": 1.02,
    "duration": 0.89,
    "end": 1.9100000000000001
  }
]

⁠Get list of voices

http://localhost:1140/voices

Returns list of voice names as strings. You can pass one as a "voice" post body param:

curl -X POST --header "Content-Type: application/json" --data '{"lines": [ "hello world", "foo bar" ], "voice": "czech" }' http://localhost:1140/say

Tag summary

Content type

Image

Digest

Size

240.9 MB

Last updated

over 7 years ago

docker pull ryangrahamnc/speakmachine