Skip to main content

Real time speech to text

Project description

Listener

Listener is a Python library for real-time speech to text conversion.

Watch a demo

Installation

Use the package manager pip to install foobar.

pip install py-listener

Basic Usage

from listener import Listener

# prints what the speaker is saying, look at all
# parameters of the constructor to find out more features
listener = Listener(speech_handler=print)

# start listening
listener.listen()

# NOTE: listening is done from a separate thread, so you must
# have other operations to keep the interpreter going, or it will
# quit. if your code has no other operations, just run a loop like
# below.

# --------------------
# import time

# while True:
#     time.sleep(1)
# -----------------------

# stops listening
listener.stop()

# starts listening again
# listener.listen()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

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

py_listener-0.1.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_listener-0.1.1-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file py_listener-0.1.1.tar.gz.

File metadata

  • Download URL: py_listener-0.1.1.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for py_listener-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1e60fb1d8c18adb714f949bf0aa95a41f077becc2b48227cb8f5ef1a6608f616
MD5 54889b032cbe0f482e500a72da8ed038
BLAKE2b-256 6bffe7f62d2d0644602ae9f923d3a7532ac1ce85efac8f18a0cc257c2c87c20f

See more details on using hashes here.

File details

Details for the file py_listener-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: py_listener-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for py_listener-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 09daee45e8769e09afa0ac9e17bd17a93e00560bae22ec9f92541da1fa9632ae
MD5 2d54bab6005ec615509ad3dc28c9b885
BLAKE2b-256 ffca1e269d7b14d2fc023cfae8d0b4d4dd06d60e913439e66c64182e59e6a69a

See more details on using hashes here.

Supported by

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