Skip to content

Commit

Permalink
Remove all examples, that have used voice request.
Browse files Browse the repository at this point in the history
Deprecation for using voice request. Warning message.
Notice in documentation about deprecation voice request.
  • Loading branch information
Dmitriy Kuragin committed Jan 16, 2017
1 parent 11774fe commit 0d7d532
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 135 deletions.
8 changes: 8 additions & 0 deletions apiai/apiai.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
events
)

import warnings

DEFAULT_VERSION = '20150910'


Expand Down Expand Up @@ -97,11 +99,17 @@ def voice_request(self):
Construct a VoiceRequest, prepare it.
Fields of request default filled from `ApiAI` parameters
(session_id, version, client_access_token).
This method is deprecated. Will be remove soon (1st feb 2017).
The request working only for old paid account.
Returns `VoiceRequest` object.
:rtype VoiceRequest:
"""

warnings.warn('This method is deprecated. Will be remove soon.', DeprecationWarning, stacklevel=2)

request = VoiceRequest(
self.client_access_token,
self._base_url,
Expand Down
Binary file removed examples/how_are_you.mp4
Binary file not shown.
Binary file removed examples/how_are_you.wav
Binary file not shown.
Binary file removed examples/log.raw
Binary file not shown.
91 changes: 0 additions & 91 deletions examples/pyaudio_example.py

This file was deleted.

Binary file removed examples/recording.mp4
Binary file not shown.
44 changes: 0 additions & 44 deletions examples/send_file_example.py

This file was deleted.

0 comments on commit 0d7d532

Please sign in to comment.