async function startStreamingWrapper()

in source/transcribedocker/transcribe-to-dynamo-withSDK.js [72:85]


async function startStreamingWrapper(audioFileName){
    try {
        // ...then we convert the mic stream to binary event stream messages when the promise resolves 
        await streamAudioToWebSocket(audioFileName);
        console.log("Done");
    } catch (error) {
        console.log(error);

    } finally {
        // Exit the progarm.
        console.log("Exiting Program");
        exit();
    }
}