iOS-Alexa
iOS-Alexa copied to clipboard
Parser crashes, when i speak "Whats up" to the Alexa
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[OS_dispatch_data rangeOfData:options:range:]: range {0, 134169} exceeds data length 86317'
Function func parseResponse(data:NSData, boundry:String) -> [PartData] crashes at a point when i use/speak "Whats up" with Alexa.
Something with Range logic i guess.
Thanks
I am looking into this issue.
But right now you can continue with enabling any skill and try with "tell
i think when you say "Whats up" in the [innerRanges] array, there comes a inner Range( innerRanges[6] at times innerRanges[7]) which exceeds the "innerData" length.
So i can add a patch there to skip (add a break or something) that part in which this exceptions occurs, not sure if there will be some other cases where this might occur.
Parser logic is correct, perhaps i think there is some problem with AVS response, it is not generic.
Rest i ll keep you posted on this, if i figure out a good work around.
ref - https://forums.developer.amazon.com/questions/46880/parsing-alexa-audio-response.html
Thanks
Or perhaps reponse Parser need to be more generic to handle all kinds of AVS response.
Any update on this ?
@vivekmpios I saw your post on the Apple developer forum with Eskimo.
Were you able to get streaming from microphone samples to the API and chunks working? Thank you so much!