Closed Taxi4you closed 1 year ago
console log function can be invisible inside native plugin function if you're using web inspector. Check the xCode log window. About raw data you can open wikipedia and figure out what does it mean. but yes after some manipulation you can use it with html5 api but not on mobile device because if raw data will be too big your app will crash. Things like raw data handling always should do on server side, this plugin you need only for audio streaming that's all.
try with this options const options = { sampleRate: 16000, bufferSize: 16384, format: 'PCM_16BIT', channels: 1, concatenateMaxChunks: 20, audioSourceType: 0 };
I succeed handle the basic usage and got audioinput event with the chunks. But what can I do with them now? Should I pass them to server using HTTP request and from there send them to other clients and in other clients apps to play them?
BTW, the audioinput stop callback returns with OK in the url instead of a real URL, howcome?
I would suggest that you check out the demo project: https://github.com/edimuj/app-audioinput-demo It contains some basic functionality for creating files and such.
On the first time it asks for permission, I give and then nothing merges in events. In the second time, after already granted permissions, it just says:
This is the code:
Some questions:
Please give me some info about how to handle this plugin and how to send the recorded raw data to the server using HTTP requests.
Thanks.