File tree Expand file tree Collapse file tree 8 files changed +396
-31
lines changed Expand file tree Collapse file tree 8 files changed +396
-31
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
4
4
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) .
6
6
7
+ ## [ 0.0.7] - 2024-11-25
8
+
9
+ ### Added
10
+
11
+ - Client-side function calling example
12
+ - Improved audio playback in examples
13
+ - Added instructions on how to generate an API KEY and how to install pyaudio
14
+
15
+ ### Changed
16
+
17
+ - Set default URL when running from CLI
18
+
7
19
## [ 0.0.6] - 2024-11-18
8
20
9
21
### Added
Original file line number Diff line number Diff line change @@ -23,22 +23,25 @@ Windows users may need to run the install command with an extra flag:
23
23
python setup.py install --user
24
24
```
25
25
26
+ Instructions on how to create an account and generate an API
27
+ key can be found here: https://docs.speechmatics.com/flow/getting-started#set-up
28
+
26
29
## Example command-line usage
27
30
28
31
- Setting URLs for connecting to flow service. These values can be used in places of the --url flag:
29
32
30
33
* Note: Requires access to microphone
31
34
32
35
``` bash
33
- speechmatics-flow --url $URL -- auth-token $TOKEN --ssl-mode insecure
36
+ speechmatics-flow --auth-token $TOKEN --ssl-mode insecure
34
37
```
35
38
36
39
### Change Assistant (Amelia → Humphrey)
37
40
38
41
To set the assistant to * Humphrey* instead of * Amelia* run this command:
39
42
40
43
``` bash
41
- speechmatics-flow --url $URL -- auth-token $TOKEN --ssl-mode insecure --assistant humphrey
44
+ speechmatics-flow --auth-token $TOKEN --ssl-mode insecure --assistant humphrey
42
45
```
43
46
44
47
### Load conversation_config from a config file
@@ -60,7 +63,7 @@ using the `--config-file` option
60
63
```
61
64
62
65
``` bash
63
- speechmatics-flow --url $URL -- auth-token $TOKEN --ssl-mode insecure --config-file conversation_config.json
66
+ speechmatics-flow --auth-token $TOKEN --ssl-mode insecure --config-file conversation_config.json
64
67
```
65
68
66
69
> ** Hint** : Why limit Humphrey? Try changing the template_variables to see what happens if he’s not a butler but
Original file line number Diff line number Diff line change 1
- 0.0.6
1
+ 0.0.7
Original file line number Diff line number Diff line change
1
+ # Examples using Flow API
2
+
3
+ ## Installation
4
+
5
+ The Speechmatics Flow library and CLI can be installed using pip:
6
+
7
+ ``` bash
8
+ pip3 install speechmatics-flow
9
+ ```
10
+
11
+ ## Prerequisites
12
+
13
+ ### Generate an API Key
14
+
15
+ Instructions on how to create an account and generate an API
16
+ key can be found here: https://docs.speechmatics.com/flow/getting-started#set-up
17
+
18
+ Set the API Key environment variable required to run the examples:
19
+
20
+ ``` bash
21
+ export SPEECHMATICS_API_KEY=$API_KEY
22
+ ```
23
+
24
+ To use this script, you may also need to install PyAudio by running:
25
+
26
+ ### Windows
27
+
28
+ ``` bash
29
+ python -m pip install pyaudio
30
+ ```
31
+
32
+ ### macOS
33
+
34
+ ``` bash
35
+ brew instal portaudio
36
+ pip3 install pyaudio
37
+ ```
38
+
39
+ ### GNU/Linux
40
+
41
+ ``` bash
42
+ sudo apt install python3-pyaudio
43
+ ```
You can’t perform that action at this time.
0 commit comments