Closed c-yyy closed 2 months ago
You can take a look at the following code. It has samples that show how to save the audio to a wav file, an mp3 file or a push/pull audio stream. You can use one of these instead of playing the audio through the speakers. https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechSynthesisSamples.java
You can take a look at the following code. It has samples that show how to save the audio to a wav file, an mp3 file or a push/pull audio stream. You can use one of these instead of playing the audio through the speakers. https://github.com/Azure-Samples/cognitive-services-speech-sdk/blob/master/samples/java/jre/console/src/com/microsoft/cognitiveservices/speech/samples/console/SpeechSynthesisSamples.java
Oh, thank you~ I solved the problem.
Here is the JAVA code: