Skip to content

Instantly share code, notes, and snippets.

@CPsridharCP
Created August 29, 2019 05:30
Show Gist options
  • Save CPsridharCP/9eb4f85f7d4ef30eafe8bd7f2523b2e2 to your computer and use it in GitHub Desktop.
Save CPsridharCP/9eb4f85f7d4ef30eafe8bd7f2523b2e2 to your computer and use it in GitHub Desktop.
else if (data.type == 'say')
{
var base64 = data.say;
var next = data.next;
misty.Debug(next);
misty.Debug(typeof next);
if (next == "None")
{
misty.Debug(data.text);
misty.SaveAudio("tts.wav", (misty.Get("base64") == "someAudio") ? base64 : misty.Get("base64") + base64, true, true);
misty.Set("base64", "someAudio", false);
misty.Set("base64", "someAudio", false);
misty.Set("base64", "someAudio", false);
}
else
{
(next == 1) ? misty.Set("base64", base64, false): misty.Set("base64", misty.Get("base64") + base64, false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment