tts add voice choose (#2391)

Co-authored-by: luowei <glpat-EjySCyNjWiLqAED-YmwM>
Co-authored-by: crazywoola <427733928@qq.com>
Co-authored-by: crazywoola <100913391+crazywoola@users.noreply.github.com>
This commit is contained in:
Charlie.Wei 2024-02-15 22:41:18 +08:00 • committed by GitHub
commit 300d9892a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
35 changed files with 746 additions and 92 deletions

View file

@ -48,6 +48,10 @@
- `file_upload_limit` (int) Maximum file upload limit, in MB (available for model type `speech2text`)
- `supported_file_extensions` (string) Supported file extension formats, e.g., mp3, mp4 (available for model type `speech2text`)
- `default_voice` (string) default voice, e.g.:alloy,echo,fable,onyx,nova,shimmer(available for model type `tts`)
- `voices` (list) List of available voice.(available for model type `tts`)
- `mode` (string) voice model.(available for model type `tts`)
- `name` (string) voice model display name.(available for model type `tts`)
- `lanuage` (string) the voice model supports languages.(available for model type `tts`)
- `word_limit` (int) Single conversion word limit, paragraphwise by default(available for model type `tts`)
- `audio_type` (string) Support audio file extension format, e.g.:mp3,wav(available for model type `tts`)
- `max_workers` (int) Number of concurrent workers supporting text and audio conversion(available for model type`tts`)

View file

@ -48,7 +48,11 @@
- `max_chunks` (int) 最大分块数量 (模型类型 `text-embedding ` `moderation` 可用)
- `file_upload_limit` (int) 文件最大上传限制,单位:MB。(模型类型 `speech2text` 可用)
- `supported_file_extensions` (string) 支持文件扩展格式,如:mp3,mp4(模型类型 `speech2text` 可用)
- `default_voice` (string) 缺省音色,可选:alloy,echo,fable,onyx,nova,shimmer(模型类型 `tts` 可用)
- `default_voice` (string) 缺省音色,必选:alloy,echo,fable,onyx,nova,shimmer(模型类型 `tts` 可用)
- `voices` (list) 可选音色列表。
- `mode` (string) 音色模型。(模型类型 `tts` 可用)
- `name` (string) 音色模型显示名称。(模型类型 `tts` 可用)
- `lanuage` (string) 音色模型支持语言。(模型类型 `tts` 可用)
- `word_limit` (int) 单次转换字数限制,默认按段落分段(模型类型 `tts` 可用)
- `audio_type` (string) 支持音频文件扩展格式,如:mp3,wav(模型类型 `tts` 可用)
- `max_workers` (int) 支持文字音频转换并发任务数(模型类型 `tts` 可用)