Home  >  Q&A  >  body text

c++ - 如何将采集的声音实时回传到PC?

目前有个需求,是想通过录音设备,将采集到声音通过无线的方式实时回传到PC,然后由PC来显示声音波形的变化,请问如何实现?

伊谢尔伦伊谢尔伦2765 days ago630

reply all(2)I'll reply

  • 阿神

    阿神2017-04-17 13:54:00

    is divided into two questions:

    1. Transmit sound wirelessly to PC?
      Bluetooth headset, I bought the cheapest one from Taobao and disassembled it, then modified it according to the project requirements.

    2. Waveform changes?
      The waveform itself is not difficult, and it is not a spectrum but requires FFT. The main purpose is to study how to use the API provided by the operating system to read microphone input.

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 13:54:00

    The sound is collected in a format similar to PCM, with sampling rate, sampling channel and other parameters. You can use a coder such as G.711 or G.729 that specializes in audio processing to compress the audio data, and then Encapsulate the audio through RTP and transmit it back to the computer, then decode and play it

    reply
    0
  • Cancelreply