When I try to get data from ALMemory
with the following code:
session.service("ALMemory").done(function (ALMemory) {
var value = ALMemory.getData("ALTextToSpeech/TextDone");
});
This value
is of type AL::ALValue
. How can I cast it to int, because in this case it is expected to be 0 for currently speaking and 1 for currently not speaking. I have tried to cast it to int or to number or to string with different methods, but with no success.
When I am using this functionality with python SDK:
def onLoad(self):
self.memory = ALProxy("ALMemory")
def onUnload(self):
self.memory = None
def onInput_checkIfSpeaking(self, p):
value = self.memory.getData("ALTextToSpeech/TextDone")
this value
is of type int, not AL::ALValue
. Is that possible to be achieved with JavaScript?