Hi, now I'm using OkHttp to connect to the AVS.
When I want to recognize what user says, I record the voice by the class AudioRecord and save it as a file. Then I send the audio file of user's speech by the OkHttp api.
And if the network is not very good, the response is always longer than 5 seconds. Because the PCM fileI record is larger than 100KB, I think the application spends much time on transmit it.
And the response audio file I save from is always less than 15KB, it also takes some time. But it doesn't take that much time as the one I send to the AVS.
So I want to know if there is a way I can send the user's voice by stream just like the Amazon Echo does in my android application. Or any advice is welcomed.
Thanks a lot!