download_file
- url (str): The URL of the file to download.
- cache_dir (str): The directory to save the downloaded file.
- Exception: If the download fails.
AudioAnalysisToolkit
init
- cache_dir (Optional[str]): Directory path for caching downloaded audio files. If not provided, ‘tmp/’ will be used. (default: :obj:
None
) - transcribe_model (Optional[BaseAudioModel]): Model used for audio transcription. If not provided, OpenAIAudioModels will be used. (default: :obj:
None
) - audio_reasoning_model (Optional[BaseModelBackend]): Model used for audio reasoning and question answering. If not provided, uses the default model from ChatAgent. (default: :obj:
None
) - timeout (Optional[float]): The timeout value for API requests in seconds. If None, no timeout is applied. (default: :obj:
None
)
audio2text
- audio_path (str): The path to the audio file or URL.
ask_question_about_audio
- audio_path (str): The path to the audio file.
- question (str): The question to ask about the audio.