abair
Types
pub type AbairError {
UnexpectedResponse
FailedToDecodeJson(json.DecodeError)
}
Constructors
-
UnexpectedResponse -
FailedToDecodeJson(json.DecodeError)
pub type Synthesised {
Synthesised(phonemes: List(String), audio: BitArray)
}
Constructors
-
Synthesised(phonemes: List(String), audio: BitArray)
Values
pub fn synthesis_request(
content: String,
) -> request.Request(String)
Create a request to abair.ie
pub fn synthesis_response(
response: response.Response(String),
) -> Result(Synthesised, AbairError)
Parse a synthesis response from abair.ie