fishaudio.resources.voices
Voice management namespace client.VoicesClient Objects
list
page_size- Number of results per pagepage_number- Page number (1-indexed)title- Filter by titletags- Filter by tags (single tag or list)self_only- Only return user’s own voicesauthor_id- Filter by author IDlanguage- Filter by language(s)title_language- Filter by title language(s)sort_by- Sort field (“task_count” or “created_at”)request_options- Request-level overrides
get
voice_id- Voice model IDrequest_options- Request-level overrides
create
title- Voice model namevoices- List of audio file bytes for trainingdescription- Voice descriptiontexts- Transcripts for voice samplestags- Tags for categorizationcover_image- Cover image bytesvisibility- Visibility setting (public, unlist, private)train_mode- Training mode (currently only “fast” supported)enhance_audio_quality- Whether to enhance audio qualityrequest_options- Request-level overrides
update
voice_id- Voice model IDtitle- New titledescription- New descriptioncover_image- New cover image bytesvisibility- New visibility settingtags- New tagsrequest_options- Request-level overrides
delete
voice_id- Voice model IDrequest_options- Request-level overrides
AsyncVoicesClient Objects
list
get
create
update
delete
fishaudio.resources.realtime
Real-time WebSocket streaming helpers.iter_websocket_audio
ws- WebSocket connection from httpx_ws.connect_ws
WebSocketError- On disconnect or error finish event
aiter_websocket_audio
ws- WebSocket connection from httpx_ws.aconnect_ws
WebSocketError- On disconnect or error finish event
fishaudio.resources.tts
TTS (Text-to-Speech) namespace client.TTSClient Objects
convert
text- Text to synthesizeconfig- TTS configuration (audio settings, voice, model parameters)model- TTS model to userequest_options- Request-level overrides
stream_websocket
text_stream- Iterator of text chunks to streamconfig- TTS configuration (audio settings, voice, model parameters)model- TTS model to usemax_workers- ThreadPoolExecutor workers for concurrent sender
AsyncTTSClient Objects
convert
text- Text to synthesizeconfig- TTS configuration (audio settings, voice, model parameters)model- TTS model to userequest_options- Request-level overrides
stream_websocket
text_stream- Async iterator of text chunks to streamconfig- TTS configuration (audio settings, voice, model parameters)model- TTS model to use
fishaudio.resources.account
Account namespace client for billing and credits.AccountClient Objects
get_credits
request_options- Request-level overrides
get_package
request_options- Request-level overrides
AsyncAccountClient Objects
get_credits
request_options- Request-level overrides
get_package
request_options- Request-level overrides
fishaudio.resources.asr
ASR (Automatic Speech Recognition) namespace client.ASRClient Objects
transcribe
audio- Audio file byteslanguage- Language code (e.g., “en”, “zh”). Auto-detected if not provided.include_timestamps- Whether to include timestamp information for segmentsrequest_options- Request-level overrides
AsyncASRClient Objects
transcribe
audio- Audio file byteslanguage- Language code (e.g., “en”, “zh”). Auto-detected if not provided.include_timestamps- Whether to include timestamp information for segmentsrequest_options- Request-level overrides

