Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

Added constant for "empty speak tag" #835

Merged
merged 2 commits into from
Oct 28, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.bot.schema;

/**
* Defines constants that can be used in the processing of speech interactions.
*/
public final class SpeechConstants {

private SpeechConstants() {

}

/**
* The xml tag structure to indicate an empty speak tag, to be used in the 'speak' property of an Activity.
* When this is set it indicates to the channel that speech should not be generated.
*/
public static final String EMPTY_SPEAK_TAG =
"<speak version=\"1.0\" xmlns=\"https://www.w3.org/2001/10/synthesis\" xml:lang=\"en-US\" />";
}