Commit aed60fd9 authored by helinlin's avatar helinlin

调整语音转文字关键字摘取逻辑

parent b676fbcd
...@@ -142,7 +142,6 @@ public class RealTimeSpeechTranscriberListener extends SpeechTranscriberListener ...@@ -142,7 +142,6 @@ public class RealTimeSpeechTranscriberListener extends SpeechTranscriberListener
@Async @Async
public void sendRecord(AudioRecord audioRecord) { public void sendRecord(AudioRecord audioRecord) {
try { try {
ObjectMapper objectMapper = new ObjectMapper();
byte[] bytes = objectMapper.writeValueAsString(audioRecord).getBytes(); byte[] bytes = objectMapper.writeValueAsString(audioRecord).getBytes();
emqKeeper.getMqttClient().publish(AudioTopic.RECORD.getName() + "/" + myNumber, bytes, 2, false); emqKeeper.getMqttClient().publish(AudioTopic.RECORD.getName() + "/" + myNumber, bytes, 2, false);
} catch (Exception e) { } catch (Exception e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment