๐Ÿ“๐ŸŽง Text to Audio API

Text to Audio API is a powerful transformer-based model that turns text into audio.

Developer Portal : https://api.market/store/bridgeml/text-to-audio

Text to Audio API is a powerful transformer-based model that turns text into audio. It can produce realistic, multilingual speech, background noise, and simple sound effects. This API also handles nonverbal cues like laughing, sighing, and crying, making it versatile for various audio applications.

Usage Example:

To generate audio, provide a text prompt along with other parameter like speaker which you want to use . We have over 130+ types of speaker voice that you can call and generate the audio. The model outputs a URL to the generated audio.

API Details:

  • Text: The main text input for generating audio.

  • speaker: Select the speaker voice.

  • language: The resulted audio language

  • cleanup_voice: Whether to clean up the voice output

Examples

Request and Response

"speaker": "announcer"

Request

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/bridgeml/text-to-audio/text-to-audio' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: multipart/form-data' \
  -F 'text=Greetings, everyone! Today, I want to talk about the importance of resilience. In our fast-paced world, change is constant, and challenges are inevitable. Resilience is the ability to bounce back, adapt, and grow stronger in the face of adversity. It'\''s not just about enduring hardships but thriving through them. We see resilience in nature, where plants thrive after storms, and in people who overcome personal and professional obstacles. It'\''s a skill that can be cultivated through mindfulness, perseverance, and a positive mindset. By embracing challenges as opportunities for growth, we can transform setbacks into stepping stones. Remember, every difficulty faced is a chance to develop resilience. As we move forward, let'\''s support each other in building this invaluable trait, for it'\''s resilience that enables us to navigate life'\''s uncertainties and achieve our fullest potential. Together, we can create a community that not only survives but thrives. Thank you!' \
  -F 'speaker=announcer' \
  -F 'language=en' \
  -F 'cleanup_voice=false'

Output

"speaker": "de_speaker_9"

Request

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/bridgeml/text-to-audio/text-to-audio' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: multipart/form-data' \
  -F 'text=Greetings, everyone! Today, I want to talk about the importance of resilience. In our fast-paced world, change is constant, and challenges are inevitable. Resilience is the ability to bounce back, adapt, and grow stronger in the face of adversity. It'\''s not just about enduring hardships but thriving through them. We see resilience in nature, where plants thrive after storms, and in people who overcome personal and professional obstacles. It'\''s a skill that can be cultivated through mindfulness, perseverance, and a positive mindset. By embracing challenges as opportunities for growth, we can transform setbacks into stepping stones. Remember, every difficulty faced is a chance to develop resilience. As we move forward, let'\''s support each other in building this invaluable trait, for it'\''s resilience that enables us to navigate life'\''s uncertainties and achieve our fullest potential. Together, we can create a community that not only survives but thrives. Thank you!' \
  -F 'speaker=de_speaker_9' \
  -F 'language=en' \
  -F 'cleanup_voice=false'

Output

"speaker": "es_speaker_9"

Request

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/bridgeml/text-to-audio/text-to-audio' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: multipart/form-data' \
  -F 'text=Greetings, everyone! Today, I want to talk about the importance of resilience. In our fast-paced world, change is constant, and challenges are inevitable. Resilience is the ability to bounce back, adapt, and grow stronger in the face of adversity. It'\''s not just about enduring hardships but thriving through them. We see resilience in nature, where plants thrive after storms, and in people who overcome personal and professional obstacles. It'\''s a skill that can be cultivated through mindfulness, perseverance, and a positive mindset. By embracing challenges as opportunities for growth, we can transform setbacks into stepping stones. Remember, every difficulty faced is a chance to develop resilience. As we move forward, let'\''s support each other in building this invaluable trait, for it'\''s resilience that enables us to navigate life'\''s uncertainties and achieve our fullest potential. Together, we can create a community that not only survives but thrives. Thank you!' \
  -F 'speaker=es_speaker_9' \
  -F 'language=en' \
  -F 'cleanup_voice=false'

Output

"speaker": "it_speaker_5"

Request

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/bridgeml/text-to-audio/text-to-audio' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: multipart/form-data' \
  -F 'text=Greetings, everyone! Today, I want to talk about the importance of resilience. In our fast-paced world, change is constant, and challenges are inevitable. Resilience is the ability to bounce back, adapt, and grow stronger in the face of adversity. It'\''s not just about enduring hardships but thriving through them. We see resilience in nature, where plants thrive after storms, and in people who overcome personal and professional obstacles. It'\''s a skill that can be cultivated through mindfulness, perseverance, and a positive mindset. By embracing challenges as opportunities for growth, we can transform setbacks into stepping stones. Remember, every difficulty faced is a chance to develop resilience. As we move forward, let'\''s support each other in building this invaluable trait, for it'\''s resilience that enables us to navigate life'\''s uncertainties and achieve our fullest potential. Together, we can create a community that not only survives but thrives. Thank you!' \
  -F 'speaker=it_speaker_5' \
  -F 'language=en' \
  -F 'cleanup_voice=false'

Output

Audio Samples

Speaker
Gender
URL

announcer

Male

de_speaker_0

Female

de_speaker_1

Female

de_speaker_2

Male

de_speaker_3

Female

de_speaker_4

Male

de_speaker_5

Male

de_speaker_6

Male

de_speaker_7

Male

de_speaker_8

Male

de_speaker_9

Male

en_speaker_0

Male

en_speaker_1

Male

en_speaker_2

Male

en_speaker_3

Male

en_speaker_4

Female

en_speaker_5

Male

en_speaker_6

Female

en_speaker_7

Male

en_speaker_8

Female

en_speaker_9

Male

es_speaker_0

Male

es_speaker_1

Female

es_speaker_2

Male

es_speaker_3

Male

es_speaker_4

Male

es_speaker_5

Male

es_speaker_6

Male

es_speaker_7

Male

es_speaker_8

Male

es_speaker_9

Male

fr_speaker_0

Male

fr_speaker_1

Male

fr_speaker_2

Female

fr_speaker_3

Male

fr_speaker_4

Male

fr_speaker_5

Male

fr_speaker_6

Male

fr_speaker_7

Male

fr_speaker_8

Male

fr_speaker_9

Female

hi_speaker_0

Male

hi_speaker_1

Male

hi_speaker_2

Male

hi_speaker_3

Female

hi_speaker_4

Female

hi_speaker_5

Female

hi_speaker_6

Female

hi_speaker_7

Male

hi_speaker_8

Female

hi_speaker_9

Female

it_speaker_0

Female

it_speaker_1

Male

it_speaker_2

Male

it_speaker_3

Male

it_speaker_4

Male

it_speaker_5

Female

it_speaker_6

Male

it_speaker_7

Female

it_speaker_8

Female

it_speaker_9

Male

ja_speaker_0

Female

ja_speaker_1

Male

ja_speaker_2

Male

ja_speaker_3

Female

ja_speaker_4

Male

ja_speaker_5

Male

ja_speaker_6

Female

ja_speaker_7

Male

ja_speaker_8

Male

ja_speaker_9

Female

ko_speaker_0

Male

ko_speaker_1

Male

ko_speaker_2

Male

ko_speaker_3

Male

ko_speaker_4

Male

ko_speaker_5

Male

ko_speaker_6

Male

ko_speaker_7

Male

ko_speaker_8

Male

ko_speaker_9

Male

pl_speaker_0

Male

pl_speaker_1

Male

pl_speaker_2

Male

pl_speaker_3

Male

pl_speaker_4

Male

pl_speaker_5

Female

pl_speaker_6

Male

pl_speaker_7

Male

pl_speaker_8

Female

pl_speaker_9

Male

pt_speaker_0

Male

pt_speaker_1

Female

pt_speaker_2

Male

pt_speaker_3

Female

pt_speaker_4

Male

pt_speaker_5

Male

pt_speaker_6

Female

pt_speaker_7

Male

pt_speaker_8

Male

pt_speaker_9

Male

ru_speaker_0

Male

ru_speaker_1

Male

ru_speaker_2

Male

ru_speaker_3

Male

ru_speaker_4

Male

ru_speaker_5

Male

ru_speaker_6

Male

ru_speaker_7

Female

ru_speaker_8

Female

ru_speaker_9

Female

tr_speaker_0

Female

tr_speaker_1

Male

tr_speaker_2

Male

tr_speaker_3

Male

tr_speaker_4

Male

tr_speaker_5

Male

tr_speaker_6

Male

tr_speaker_7

Female

tr_speaker_8

Male

tr_speaker_9

Male

zh_speaker_0

Female

zh_speaker_1

Female

zh_speaker_2

Male

zh_speaker_3

Male

zh_speaker_4

Female

zh_speaker_5

Female

zh_speaker_6

Male

zh_speaker_7

Male

zh_speaker_8

Female

zh_speaker_9

Male

Developer Portal : https://api.market/store/bridgeml/text-to-audio

Last updated