NIUBOYI»Home › › › Chatgpt帮助文档 › 中文 | English
微信扫一扫 分享朋友圈

已有 1111 人浏览分享

[api设置]    TTS Voice API: Introduction and Usage Guide

api设置 2024-6-6 17:39:241111 0
What is it?
With the new text-to-speech API, developers can generate high-quality spoken audio from text. OpenAI initially offers six preset voices to choose from and provides two model variants, tts-1 and tts-1-hd. tts-1 is optimized for real-time use cases, and tts-1-hd is optimized for quality. Pricing starts at $0.015 per 1,000 input characters (not tokens).

How do I use it?
Anyone with an OpenAI API account can access the new audio/speech endpoint.

What rate limits can I expect?
Rate limits for paid accounts start at 50 RPM. You can view your limits in the developer console.

What is the maximum input size that can be submitted per request?
4096 characters (equivalent to about 5 minutes of audio at default speed).

Can audio be streamed?
Yes! By setting stream=True, you can chunk the returned audio file.
  • WeChat Official Account

  • Scan to Visit Mobile Site

QQ|NIUBOYI ( 京ICP备17025393号 )|网站地图

GMT+8, 2026-10-31 07:15 , Processed in 0.050425 second(s), 38 queries .

POWERED BY NIUBOYIAI! 主理人:NIUBOYIAI  点亮哥

Copyright © 2001-2020, NIUBOYI AI.