aioamazondevices 1.7.0__tar.gz → 1.8.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/PKG-INFO +1 -1
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/pyproject.toml +1 -1
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/src/aioamazondevices/__init__.py +1 -1
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/src/aioamazondevices/api.py +17 -0
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/LICENSE +0 -0
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/README.md +0 -0
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/src/aioamazondevices/const.py +0 -0
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/src/aioamazondevices/exceptions.py +0 -0
- {aioamazondevices-1.7.0 → aioamazondevices-1.8.0}/src/aioamazondevices/py.typed +0 -0
@@ -71,6 +71,7 @@ class AmazonSequenceType(StrEnum):
|
|
71
71
|
Speak = "Alexa.Speak"
|
72
72
|
Sound = "Alexa.Sound"
|
73
73
|
Music = "Alexa.Music.PlaySearchPhrase"
|
74
|
+
TextCommand = "Alexa.TextCommand"
|
74
75
|
|
75
76
|
|
76
77
|
class AmazonMusicSource(StrEnum):
|
@@ -700,6 +701,12 @@ class AmazonEchoApi:
|
|
700
701
|
"sanitizedSearchPhrase": message_body,
|
701
702
|
"musicProviderId": message_source,
|
702
703
|
}
|
704
|
+
elif message_type == AmazonSequenceType.TextCommand:
|
705
|
+
payload = {
|
706
|
+
**base_payload,
|
707
|
+
"skillId": "amzn1.ask.1p.tellalexa",
|
708
|
+
"text": message_body,
|
709
|
+
}
|
703
710
|
|
704
711
|
sequence = {
|
705
712
|
"@type": "com.amazon.alexa.behaviors.model.Sequence",
|
@@ -767,3 +774,13 @@ class AmazonEchoApi:
|
|
767
774
|
return await self._send_message(
|
768
775
|
device, AmazonSequenceType.Music, message_body, message_source
|
769
776
|
)
|
777
|
+
|
778
|
+
async def call_alexa_text_command(
|
779
|
+
self,
|
780
|
+
device: AmazonDevice,
|
781
|
+
message_body: str,
|
782
|
+
) -> None:
|
783
|
+
"""Call Alexa.Sound to play sound."""
|
784
|
+
return await self._send_message(
|
785
|
+
device, AmazonSequenceType.TextCommand, message_body
|
786
|
+
)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|