Created
August 29, 2019 05:30
-
-
Save CPsridharCP/9eb4f85f7d4ef30eafe8bd7f2523b2e2 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
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