Skip to main content

A small tool that uses Selenium to drive a local speech-to-text demo page.

Project description

speech-to-text-selenium

This small project demonstrates driving a local speech-to-text demo (index.html) using Selenium.

Quick start

  1. Create a virtual environment and install dependencies:
python -m venv .venv; .\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
  1. Run locally (this will open Chrome and click the Start button):
python .\main.py
# or if you installed the package: speech-listen

Notes

  • Chrome must be able to access your microphone. Running headless will typically block access to a real microphone. The script uses --use-fake-ui-for-media-stream to auto-allow the permission prompt.
  • For CI and headless runs, use fake audio with --use-file-for-fake-audio-capture and --use-fake-device-for-media-stream.

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_to_text_selenium-0.1.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

speech_to_text_selenium-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file speech_to_text_selenium-0.1.0.tar.gz.

File metadata

  • Download URL: speech_to_text_selenium-0.1.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.1

File hashes

Hashes for speech_to_text_selenium-0.1.0.tar.gz
Algorithm Hash digest
SHA256 29b491ee87789335828407624ed4f809609ce4fa63bc4b31e0686f67b0c0cb5b
MD5 363cf4d2f65dec196c44c03a9b97d384
BLAKE2b-256 4339bd2d4714250049f78b21eea6c19078819c5f4139ef477853c090e62c30c7

See more details on using hashes here.

File details

Details for the file speech_to_text_selenium-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for speech_to_text_selenium-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7e7fc54ba6325da4d6512bec5f9279aa7d4f18f3c9d89651a05f1e0cc6827495
MD5 7e7116d938b3bda65eec1f90bad955ca
BLAKE2b-256 0316be52171f1e966514bec5021acafa5a8666d5f6155476660e863bd9a79a2d

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