Skip to content

Text-To-Speech

1. Introduction

The Text-To-Speech (TTS) API is a service that converts text data into voice. It enables the development of voice applications or integration of voice service functions by converting text data into various voice formats.

Key features

  • Convert text data: Convert the text data provided to voice.
  • High quality voice output: Provides natural and clear voice output with advanced voice synthesis algorithms.

Use Cases

Through the TTS API, various voice-based applications can be developed or voice services can be implemented to enhance the user experience.

  • Create audiobook: Creates an audiobook by converting text data into voice.
  • Educational application: Transforms learning materials into speech to support auditory learning.
  • Auto response system: Converts text data to voice and integrates it into the auto-response system.
  • Advanced accessibility: Converts text content into voice for the visually impaired to improve access to information.

2. Example

Request Sample

shell
curl -X POST 'https://apis.daglo.ai/tts/v1/sync/audios' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer <API_TOKEN>' \
--data '{"text": "Hello, we're Action Power."}

Response Sample

shell
wav file

3. Instructions

1) Getting an API Key

  • Create an account in the API console.
  • Go to the token menu and issue a new token.
  • Copy the issued token information and use it as an authentication token when requested.

2) Sending a request

a. POST Synthesize short speech

  • Endpoint
shell
POST https://apis.daglo.ai/tts/v1/sync/audios
ParameterTypeInfo
textstringtype the text you want to utter

3) Getting a response

  • Success
View response code
  • 200
  • 204
    • No Content. The request was successful, but no result is returned.
  • Error
View response code
  • 400: Bad Request. Invalid format.
  • 401: Unauthorized.
  • 403: Forbidden. Unauthorized access.
  • 413: Payload Too Large. Request too large.
  • 415: Unsupported Media Type.
  • 429: Too Many Requests.
  • 500: Internal Server Error.
  • 503: We are processing so many requests that we are temporarily unable to respond. Please try again in a moment.

Update History

  • 20240902 ver1.0 API document has been created.