Get audio from microphone and write it to socket o

2020-04-28 05:37发布

this is what I would like to do:

  • Get audio from the microphone
  • Encode it in AAC, G.711 or G.726
  • Write the encoded frames to a socket.

I found many examples but they all write to file. Can you link me to any tutorial/documentation/example/library that has an output buffer or a callback instead?

标签: ios audio
1条回答
Bombasti
2楼-- · 2020-04-28 06:09

I solved my problem by modifying the AQRecorder class from the SpeakHere example by Apple.

The project is available here https://github.com/robovm/apple-ios-samples/tree/master/SpeakHere.

查看更多
登录 后发表回答