abair

A client for abair.ie’s Gaeilge voice synthesis

Package Version Hex Docs

gleam add abair@1
import abair
import gleam/httpc
import simplifile

pub fn main() {
  let assert Ok(response) = abair.synthesis_request("Dia duit!") |> httpc.send
  let assert Ok(synthesized) = abair.synthesis_response(response)
  simplifile.write_bits("greeting.wav", synthesized.audio)
}

Further documentation can be found at https://hexdocs.pm/abair.

Search Document