用Java中的模拟麦克风播放声音

时间:2016-03-12 21:08:33

标签: java microphone

我将Raspberry pi连接到连接到uint32_t hexU32 = 0x0f; int hexI = 0x3c; unsigned short hexUS = 0x12; std::cout << hex_out_s(hexU32) << std::endl; std::cout << hex_out_s(hexI) << std::endl; std::cout << "And let's not forget " << hex_out_s(hexUS) << std::endl; 的ADC。 实际上是否可以处理ADC的数据,以便我可以用Java将其传递给!analog! microphone或类似的东西?

1 个答案:

答案 0 :(得分:0)

您可以轻松尝试此操作,例如http://www.codejava.net/coding/capture-and-record-sound-into-wav-file-with-java-sound-api

Java capture api在https://docs.oracle.com/javase/tutorial/sound/capturing.html

上有一个不错的文档(绰绰有余)
相关问题