xiankgx / voice-tools

Text-to-speech with OpenAI or MetaVoice-1B and voice clone with OpenVoice v2

  • Public
  • 228 runs
  • License

Run xiankgx/voice-tools with an API

Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.

Input schema

The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.

Field Type Default value Description
speech
string
Speech
text
string
Text to convert to speech.
tts_model
string (enum)
openai--tts-1-hd

Options:

openai--tts-1-hd, openai--tts-1, MetaVoice-1B

Text-to-speech model.
tts_voice
string (enum)
alloy

Options:

alloy, echo, fable, onyx, nova, shimmer, bria, 11_callum, 11_charlie, 11_charlotte, 11_clyde, 11_daniel, 11_dave, 11_emily, 11_ethan, 11_fin, 11_freya, 11_gigi, 11_giovanni, 11_glinda

Text-to-speech voice.
openai_api_key
string
OpenAI API key for text-to-speech. Applicable only if `tts_model` is set to one of the OpenAI models, i.e, models with prefix `openai--`.
ref_speech
string
Reference speech to clone voice from.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{
  "type": "string",
  "title": "Output",
  "format": "uri"
}