With 1.7 million freelancers, we'll match you with the perfect talent.
The client has made the following changes to the job.
Client prefers freelancers from:
You are still able to submit a proposal for this job.
The client prefers freelancers from
a different location.
Streaming Mic to WebService
Referencing this command line (one line only , this command works on ubuntu 12.04):
$ arecord -d 5 -f dat -c 1 -f S16_LE -r 16000 | speexenc - - | curl -X PUT " [obscured] /api/user-sound?surahId=78&ayahFrom=1&ayahTo=4&extension=ogg" -u ZmFzaWFsb2JlaWRAeWFob28uY29t:28c8edde3d61a0411511d3b1866f0636 -T -
Open the mic,
Open the connection to the web service
Read bytes from the mic on the rate of 16000 Hz (wave pcm signed 16-bit little endian mono 16000 Hz)
Encode the bytes to Speex ( [obscured] )
Write the bytes (of Speex) to the webservice body in chunks (instead of the wav file contents)
On stop, stop writing on the web service and send the final chunk (zero-length).
Wait for JSON results.
Sign in or Register to see more