8000 Add a constant for "empty speak tag" · snifhex/botbuilder-python@a0978a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a0978a9

Browse files
committed
Add a constant for "empty speak tag"
1 parent 59dadd0 commit a0978a9

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

libraries/botbuilder-schema/botbuilder/schema/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
from .callerid_constants import CallerIdConstants
7171
from .health_results import HealthResults
7272
from .healthcheck_response import HealthCheckResponse
73+
from .speech_constants import SpeechConstants
7374

7475
__all__ = [
7576
"Activity",
@@ -139,4 +140,5 @@
139140
"CallerIdConstants",
140141
"HealthResults",
141142
"HealthCheckResponse",
143+
"SpeechConstants",
142144
]
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Copyright (c) Microsoft Corporation. All rights reserved.
2+
# Licensed under the MIT License.
3+
4+
5+
class SpeechConstants:
6+
"""
7+
Defines constants that can be used in the processing of speech interactions.
8+
"""
9+
10+
EMPTY_SPEAK_TAG = '<speak version="1.0" xmlns="https://www.w3.org/2001/10/synthesis" xml:lang="en-US" />'
11+
"""
12+
The xml tag structure to indicate an empty speak tag, to be used in the 'speak' property of an Activity.
13+
When set this indicates to the channel that speech should not be generated.
14+
"""

0 commit comments

Comments
 (0)
0