Skip to content

Instantly share code, notes, and snippets.

@ParadauxIO
Created April 22, 2024 15:57
Show Gist options
  • Save ParadauxIO/5b3341560a1117223ece8f96fc1ab155 to your computer and use it in GitHub Desktop.
Save ParadauxIO/5b3341560a1117223ece8f96fc1ab155 to your computer and use it in GitHub Desktop.
export const synthesize = async () => {
// Crashes expo-go
await Audio.Sound.createAsync(
{ uri: "https://synthesis.abair.ie/piper/synthesise?voice=snc22_no0.piper&input=t%C3%A1&outputType=AUDIO&audioEncoding=MP3&cutSilence=true&speed=1&ps=0.0&pa=1" },
{ shouldPlay: true });
// Exact same audio file, just served statically rather than generated
await Audio.Sound.createAsync(
{ uri: "https://synthesis.abair.ie/audio/test.mp3" },
{ shouldPlay: true });
}
// try {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment