Hi. I want to stream mic input data from Unity to wit.ia web server.
According to Unity side, they say:
“It also supports high-demand features such as chunked HTTP requests, streaming POST/PUT operations, and full control over HTTP headers and verbs.”
And in wit.ia page docs they say:
“Streaming audio
We accept chunked data, which is a good way to reduce latency. In addition to the Content-type header, you must set a Transfer-encoding header to chunked
Audio stream shouldn’t exceed 10s of audio time.”
https://wit.ai/docs/http/20160526#streaming-audio
Here is more details in the wit.ia side:
Definition
POST https://api.wit.ai/speech
Example request
$ curl -XPOST ‘https://api.wit.ai/speech?v=20160526’
-i -L
-H “Authorization: Bearer $TOKEN”
-H “Content-Type: audio/wav”
–data-binary “@sample.wav”
I dont know how to handle this. Please, keep in mind that im asking for STREAMING. I already know how to do this without streaming (just sending a recorder wav file from disk).
Any ideas will be appreciated!