Class PersonalVoiceSynthesisRequest
- java.lang.Object
-
- com.microsoft.cognitiveservices.speech.SpeechSynthesisRequest
-
- com.microsoft.cognitiveservices.speech.PersonalVoiceSynthesisRequest
-
- All Implemented Interfaces:
AutoCloseable
public class PersonalVoiceSynthesisRequest extends SpeechSynthesisRequest
Represents a personal voice speech synthesis request for text streaming. This class is in preview and is subject to change.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.microsoft.cognitiveservices.speech.SpeechSynthesisRequest
SpeechSynthesisRequest.SpeechSynthesisInputStream, SpeechSynthesisRequest.SpeechSynthesisRequestInputType
-
-
Constructor Summary
Constructors Constructor Description PersonalVoiceSynthesisRequest(SpeechSynthesisRequest.SpeechSynthesisRequestInputType inputType, String personalVoiceName, String modelName)Creates a personal voice speech synthesis request with text streaming enabled.
-
Method Summary
-
Methods inherited from class com.microsoft.cognitiveservices.speech.SpeechSynthesisRequest
close, finishInput, getInputStream, getRequestHandle, sendTextPiece, setPitch, setRate, setStyle, setTemperature, setVolume
-
-
-
-
Constructor Detail
-
PersonalVoiceSynthesisRequest
public PersonalVoiceSynthesisRequest(SpeechSynthesisRequest.SpeechSynthesisRequestInputType inputType, String personalVoiceName, String modelName)
Creates a personal voice speech synthesis request with text streaming enabled.- Parameters:
inputType- The input type (must be TextStream).personalVoiceName- The name of the personal voice to be used for synthesis.modelName- The name of the model (e.g., "DragonLatestNeural" or "PhoenixLatestNeural").
-
-