MCPcopy Create free account
hub / github.com/dashscope/dashscope-sdk-java / main

Method main

samples/AudioRecognitionUsage.java:151–161  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

149 }
150
151 public static void main(String[] args){
152 String filePath = "./src/test/resources/asr_example_cn_en.wav";
153 AudioRecognitionUsage audioRecognition = new AudioRecognitionUsage();
154 try {
155 audioRecognition.recognitionFile(filePath);
156 audioRecognition.recognitionRealtimeMicrophone();
157 } catch (Exception e) {
158 System.out.println(e.getMessage());
159 }
160 System.exit(0);
161 }
162}

Callers

nothing calls this directly

Calls 3

recognitionFileMethod · 0.95
getMessageMethod · 0.80

Tested by

no test coverage detected