|
@@ -89,11 +89,11 @@ public class NettyClient {
|
|
|
String step2 = "{\"header\":{\"commond\":\"recordStart\",\"type\":\"SOUND_COMPARE\",\"status\":200}}";
|
|
|
channel.writeAndFlush(new TextWebSocketFrame(step2));
|
|
|
|
|
|
- String step3 = "{\"body\":{\"micDelay\":122,\"offsetTime\":431},\"uuid\":\"1662715309875118846\",\"header\":{\"commond\":\"audioPlayStart\",\"type\":\"SOUND_COMPARE\"}}";
|
|
|
+ String step3 = "{\"body\":{\"micDelay\":63,\"offsetTime\":201},\"uuid\":\"1662715309875118846\",\"header\":{\"commond\":\"audioPlayStart\",\"type\":\"SOUND_COMPARE\"}}";
|
|
|
channel.writeAndFlush(new TextWebSocketFrame(step3));
|
|
|
//51. "micDelay\":122,\"offsetTime\":431
|
|
|
//step4 发送wav
|
|
|
- String fileName = "/100254_2406060919766_打击乐51.wav";
|
|
|
+ String fileName = "/2135180_2406261737430.wav";
|
|
|
AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(FileUtils.toFile(WebSocketClientHandler.class.getResource(fileName)));
|
|
|
|
|
|
AudioFormat baseFormat = audioInputStream.getFormat();
|