oaapi/audio/result.rs
1use bytes::Bytes;
2
3use crate::audio::AudioApiError;
4use crate::audio::TextFormatError;
5
6/// The result of a speech stream.
7pub type SpeechStreamResult = Result<Bytes, reqwest::Error>;
8
9/// The result of an audio API calling.
10pub type AudioApiResult<T> = Result<T, AudioApiError>;
11
12/// The result of formatting a response text.
13pub type TextFormatResult<T> = Result<T, TextFormatError>;