Skip to main content

Windows hold-to-speak dictation app using SecureGPT.

Project description

AXA YAP : Hold-to-speak dictation app powered by SecureGPT

Hold a hotkey, speak, release and your speech is transcribed and pasted at the cursor.

Demo

Requirements

  • Windows 11
  • Python 3.13+
  • uv installed

Configuration

Option 1 : Manually set environment variables

Set the following environment variables:

# SecureGPT credentials
ONEACCOUNT_LOGIN_URL=https://onelogin.axa.com
MHUB_API_URL=https://api.se.axa-go.applications.services.axa-tech.intraxa/ago-m365-securegpt-hub-v1-vrs
MHUB_CLIENT_ID=<your-client-id>
MHUB_CLIENT_SECRET=<your-client-secret>
MHUB_API_VERSION=2025-04-01-preview

Optionally, you can set these as well:

# Hotkey combo to hold while speaking (default: Ctrl+Alt+Space)
AXA_YAP_HOTKEY=<ctrl>+<alt>+<space>

# OpenAI transcription model
AXA_YAP_TRANSCRIPTION_MODEL=gpt-4o-transcribe-2025-03-20

# Microphone device index (run uvx axa_yap --list-devices to find yours, leave empty for default)
# Pass the index of the device (e.g. "0")
AXA_YAP_MIC_DEVICE=

# Language hint for transcription (e.g. "en", "fr"). Default: "en"
# Doesn't do much
AXA_YAP_LANGUAGE=en

Option 2: Use a .env file

Create a .env file in whatever location you want, and specify its path in the environment variable AXA_YAP_DOTENV_PATH.

Usage

Run directly with uvx (no manual install needed):

uvx axa_yap

Important: Use uvx axa_yap --list-devices to find your microphone index if the default doesn't work, and set AXA_YAP_MIC_DEVICE accordingly.

CLI Options

uvx axa_yap --list-devices # List available audio input devices
uvx axa_yap --install      # Register app to start automatically on Windows login
uvx axa_yap --uninstall    # Remove app from Windows startup

Instructions

  1. Hold the hotkey (default Ctrl+Alt+Space) : recording starts and an overlay appears.
  2. Speak while holding the keys.
  3. Release: audio is sent to SecureGPT for transcription.
  4. The transcribed text is automatically pasted at your current cursor position.

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

axa_yap-0.1.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

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

axa_yap-0.1.4-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file axa_yap-0.1.4.tar.gz.

File metadata

  • Download URL: axa_yap-0.1.4.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for axa_yap-0.1.4.tar.gz
Algorithm Hash digest
SHA256 41e584d34e1bddd648117df56a465cea9592db7cc62ce94a18f4026cac34549a
MD5 db5870957c7a4bbabd97397886ab80f4
BLAKE2b-256 913f1bb59e08aa7403a978faf9b0a8dfe15a14c6e0bf0ac4d11d20ce0a9b790d

See more details on using hashes here.

File details

Details for the file axa_yap-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: axa_yap-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for axa_yap-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 661ba05e154c53c4f7fcf396ca871710692729a03d914930182a028702766802
MD5 de173cc413b6c8fc0e2a96140861646f
BLAKE2b-256 e82c27bb49b808bffd58778044c9f21ae8ee57de428d65c715cfd3fbed4542a2

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