SetSpeakMiddleware Class
- java.
lang. Object - com.
microsoft. bot. builder. SetSpeakMiddleware
- com.
Implements
public class SetSpeakMiddleware
implements Middleware
Support the DirectLine speech and telephony channels to ensure the appropriate SSML tags are set on the Activity Speak property.
Constructor Summary
| Constructor | Description |
|---|---|
| SetSpeakMiddleware(String voiceName, boolean fallbackToTextForSpeak) |
Initializes a new instance of the SetSpeakMiddleware class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.util.concurrent.CompletableFuture<java.lang.Void> |
onTurn(TurnContext turnContext, NextDelegate next)
Processes an incoming activity. |
Methods inherited from java.lang.Object
Constructor Details
SetSpeakMiddleware
public SetSpeakMiddleware(String voiceName, boolean fallbackToTextForSpeak)
Initializes a new instance of the SetSpeakMiddleware class.
Parameters:
Method Details
onTurn
public CompletableFuture
Processes an incoming activity.
Parameters:
Returns: