Skip to main content

speechmatics-flow

Python client library and CLI for Speechmatics' Flow Service API.

Getting started

To install from PyPI:

pip install speechmatics-flow

To install from source:

git clone https://github.com/speechmatics/speechmatics-flow
cd speechmatics-flow && python setup.py install

Windows users may need to run the install command with an extra flag:

python setup.py install --user

Instructions on how to create an account and generate an API key can be found here: https://docs.speechmatics.com/flow/getting-started#set-up

Example command-line usage

  • Setting URLs for connecting to flow service. These values can be used in places of the --url flag:

*Note: Requires access to microphone

speechmatics-flow --auth-token $TOKEN

Change Assistant (Amelia → Humphrey)

To set the assistant to Humphrey instead of Amelia run this command:

speechmatics-flow --auth-token $TOKEN --assistant humphrey

Load conversation_config from a config file

Instead of manually setting up conversation parameters, you can load them from a configuration file.

Create a JSON file with the template details, for example "conversation_config.json" and run flow client using the --config-file option

{
  "template_id": "flow-service-assistant-humphrey",
  "template_variables": {
    "persona": "You are an English butler named Humphrey.",
    "style": "Be charming but unpredictable.",
    "context": "You are taking a customer's order at a fast food restaurant."
  }
}
speechmatics-flow --auth-token $TOKEN --config-file conversation_config.json

Hint: Why limit Humphrey? Try changing the template_variables to see what happens if he’s not a butler but perhaps... a pirate, a celebrity chef, or a royal advisor. We won’t stop you. 🏴‍☠️

Support

If you have any issues with this library or encounter any bugs then please get in touch with us at support@speechmatics.com.

Metadata

Release files for speechmatics-flow 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for speechmatics-flow 0.1.2
File Size Uploaded
speechmatics_flow-0.1.2.tar.gz 21.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for speechmatics-flow 0.1.2
File Interpreter ABI Platform
speechmatics_flow-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.0 kB

Release files / speechmatics_flow-0.1.2.tar.gz

Download URL speechmatics_flow-0.1.2.tar.gz
Size 21.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7ef7d7d30b929d124bf7c3e1e51114d6f6454a807a60a00e3483d1cce78cbb48
BLAKE2b-256 checksum
How to use checksums
dc9e1aa1690380c8ab29e464ab6514b274857b9711c29947b3c73b775c31f292
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / speechmatics_flow-0.1.2-py3-none-any.whl

Download URL speechmatics_flow-0.1.2-py3-none-any.whl
Size 21.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ef078c91af7711b39ae49b44b6fa362a742ac8398ec0a149b537b52e6248e0b
BLAKE2b-256 checksum
How to use checksums
92a15e51a357c896f08a572a3ddbeeafc917d554e0b55252e24d71a6ce1ccc8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page