Qiniu AI icon

Qiniu AI

Interact with Qiniu AI services - Chat, Image, Video, Agent and more

Audio → Text to Speech

AI-generated

Summary

Synthesize speech from text using Qiniu AI

Inputs

  • text (required) — The text to convert to speech
  • voice — Voice ID to use for synthesis
  • options — Synthesis configuration options

Output shape

binary audio data with metadata

Returns audio as binary data along with its duration and the raw API response

Examples

Example 1: Convert a paragraph of text to MP3 speech with default voice and speed

Set text parameter, leave voice at default, set encoding to 'mp3'

Links

Discussion