Skip to main content

speech_user_interface

A universal speech user interface for wrapping applications to provide them with a user interface that uses speech rather than text commands or traditional user interfaces

You need to define a function to run like this:

def default_function_to_run(input_text: str):
    reponse_text = send_text_to_chatgpt(input_text)
    speak_text(reponse_text)


main(function_to_run=default_function_to_run):

This one is configured by default but it can be anything. We run in a cycle until "exit the program" is said and that exits the infinite loop. We just keep reading input and passing that to the function_to_run this can do anything with this input.

If you want to use the default ChatGPT integration make sure that you create a .env file which defines the OPENAI_API_KEY environment variable with a reference to your OpenAI API key.

Metadata

Release files for speech_user_interface 0.2.0

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

Source distribution (sdist)

Source distribution for speech_user_interface 0.2.0
File Size Uploaded
speech_user_interface-0.2.0.tar.gz 6.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for speech_user_interface 0.2.0
File Interpreter ABI Platform
speech_user_interface-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.8 kB

Release files / speech_user_interface-0.2.0.tar.gz

Download URL speech_user_interface-0.2.0.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
b9f070ad1db6d22328f7dd7319cf991976355c3e97666af55566375cc78ffcb9
BLAKE2b-256 checksum
How to use checksums
b630d399f5c0fd0321a2876f408ee0294677e26cb0b08b48a2593c92d5489c02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Windows/11

Release files / speech_user_interface-0.2.0-py3-none-any.whl

Download URL speech_user_interface-0.2.0-py3-none-any.whl
Size 10.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df3862c15eb1143cb6f5cfd8a654a22afbf0548dcebed0ebb5b6cacf0528a16d
BLAKE2b-256 checksum
How to use checksums
1f39f1c449fe71f277a0a397364c2e9f183631ad3e87c460146cbb31dade3ac7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.12.2 Windows/11

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.15

2 release files

0.1.13

2 release files

0.1.12

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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