Canardoux / flutter_sound

Flutter plugin for sound. Audio recorder and player.
Mozilla Public License 2.0
871 stars 569 forks source link

[HELP]How can I get Uint16List from stream?: #934

Open camphan12993 opened 2 years ago

camphan12993 commented 2 years ago

I making a speech to text application which connects to Google speech to text api! I'm using the data from recorder stream then send to Google Api to get the text! however it doesn't work with current data format (Uint8List)! How can I get or convert to Uint16List?

TheSingletonDev commented 1 year ago

Hey @camphan12993 , were you able to resolve this issue?

If not, then you can do this:

.stream.listen(data){
  //Here data is Uint8List 
  data.buffer.asInt16List()
})

However, I would like to know how you are obtaining the stream data (Uint8List) using flutter_sound?

github-actions[bot] commented 10 months ago

This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days.