aioamazondevices 1.7.0__py3-none-any.whl → 1.8.0__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  """aioamazondevices library."""
2
2
 
3
- __version__ = "1.7.0"
3
+ __version__ = "1.8.0"
4
4
 
5
5
 
6
6
  from .api import AmazonDevice, AmazonEchoApi
aioamazondevices/api.py CHANGED
@@ -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
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: aioamazondevices
3
- Version: 1.7.0
3
+ Version: 1.8.0
4
4
  Summary: Python library to control Amazon devices
5
5
  License: Apache-2.0
6
6
  Author: Simone Chemelli
@@ -0,0 +1,9 @@
1
+ aioamazondevices/__init__.py,sha256=YjVGmADfaQ0huPg-MEYlwK_KbqYqoZCjordvIITyAk0,276
2
+ aioamazondevices/api.py,sha256=SfwPrEl3s4aJjb-fpiKVJ75TfKJzdBwC5m0W9NshZEI,27940
3
+ aioamazondevices/const.py,sha256=6BBEg_q2BkYVYJcz3hMrLNyEwOJBWziPSStMzftWQLg,2106
4
+ aioamazondevices/exceptions.py,sha256=qK_Hak9pc-lC2FPW-0i4rYIwNpEOHMmA9Rii8F2lkQo,1260
5
+ aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ aioamazondevices-1.8.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
7
+ aioamazondevices-1.8.0.dist-info/METADATA,sha256=lKjLf3eyeTqzli2R5BYEM2RssjQYLbRP6nz3EtTywwE,5010
8
+ aioamazondevices-1.8.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
+ aioamazondevices-1.8.0.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- aioamazondevices/__init__.py,sha256=L4W0ORfkNA0DX8VpSFxeXgqh0SCV-FEGz1MGVY5suBc,276
2
- aioamazondevices/api.py,sha256=MqUfScgFXiD26AOSZfpKPN78xysmOkq7g-p2KutN9vs,27392
3
- aioamazondevices/const.py,sha256=6BBEg_q2BkYVYJcz3hMrLNyEwOJBWziPSStMzftWQLg,2106
4
- aioamazondevices/exceptions.py,sha256=qK_Hak9pc-lC2FPW-0i4rYIwNpEOHMmA9Rii8F2lkQo,1260
5
- aioamazondevices/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- aioamazondevices-1.7.0.dist-info/LICENSE,sha256=sS48k5sp9bFV-NSHDfAJuTZZ_-AP9ZDqUzQ9sffGlsg,11346
7
- aioamazondevices-1.7.0.dist-info/METADATA,sha256=dxCWOsgRGz6qydT8btCfigvN9DZeYHkOvgmB5mRdbO8,5010
8
- aioamazondevices-1.7.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
9
- aioamazondevices-1.7.0.dist-info/RECORD,,