Skip to main content

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

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

speech_user_interface-0.1.15.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

speech_user_interface-0.1.15-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file speech_user_interface-0.1.15.tar.gz.

File metadata

  • Download URL: speech_user_interface-0.1.15.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.2 Windows/11

File hashes

Hashes for speech_user_interface-0.1.15.tar.gz
Algorithm Hash digest
SHA256 b86ad3fcd21e06a360496b719f2b462ec28baf35a94bc2e6bab1d0bfd1275c8d
MD5 47a904d823569704293ba4bfc49f0ce3
BLAKE2b-256 92b590a7da09ddc34530843b3457099ea0c45c98059acd5fffb22e94c8c5f1db

See more details on using hashes here.

File details

Details for the file speech_user_interface-0.1.15-py3-none-any.whl.

File metadata

File hashes

Hashes for speech_user_interface-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 7296f53a8ff75508df7ea31ac5d21c8322800356e25020b591784b40f6ff3420
MD5 f79663fb9835d1c869f3eaab1c49d159
BLAKE2b-256 95a60818d6ef68914aee38931f9c141f1a5e4b1f8b212e3828d90005e6784b01

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page