FishAudioModel
init
- api_key (Optional[str]): API key for FishAudio service. If not provided, the environment variable
FISHAUDIO_API_KEY
will be used. - url (Optional[str]): Base URL for FishAudio API. If not provided, the environment variable
FISHAUDIO_API_BASE_URL
will be used.
text_to_speech
- input (str): The text to convert to speech.
- storage_path (Optional[str]): The file path where the resulting speech will be saved. (default: :obj:
None
) - reference_id (Optional[str]): An optional reference ID to associate with the request. (default: :obj:
None
) - reference_audio (Optional[str]): Path to an audio file for reference speech. (default: :obj:
None
) - reference_audio_text (Optional[str]): Text for the reference audio. (default: :obj:
None
) **kwargs (Any): Additional parameters to pass to the TTS request.
speech_to_text
- audio_file_path (str): The path to the audio file to transcribe.
- language (Optional[str]): The language of the audio. (default: :obj:
None
) - ignore_timestamps (Optional[bool]): Whether to ignore timestamps. (default: :obj:
None
) **kwargs (Any): Additional parameters to pass to the STT request.