Display selected tts voice name (#2459)

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-18 15:39:25 +08:00 • committed by GitHub
commit c6e2900be7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 28 additions and 11 deletions

View file

@ -94,6 +94,6 @@ export const generationIntroduction: Fetcher<GenerationIntroductionResponse, { u
return post<GenerationIntroductionResponse>(url, { body })
}
export const fetchAppVoices: Fetcher<AppVoicesListResponse, { url: string }> = ({ url }) => {
return get<AppVoicesListResponse>(url)
export const fetchAppVoices: Fetcher<AppVoicesListResponse, { appId: string; language?: string }> = ({ appId, language }) => {
return get<AppVoicesListResponse>(`apps/${appId}/text-to-audio/voices?language=${language}`)
}