Created
April 22, 2024 15:57
-
-
Save ParadauxIO/5b3341560a1117223ece8f96fc1ab155 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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