Skip to main content

A Matrix bot that transcribes audio messages

Project description

matrix-transcriber

This Matrix bot listens to audio messages and answers with a transcript of their content.

Installation

The bot uses Whisper to transcribe audio files, which requires ffmpeg to be installed.

Configuration

The following environment variables are used for configuration:

# Which Whisper model should be used?
WHISPER_MODEL=base

# Which Matrix server should be used to log in to?
MATRIX_SERVER=https://matrix.example.org

# What Matrix account shall the bot use?
MATRIX_USER=@transcription:example.org

# What it its password?
MATRIX_PASSWORD=<Password>

# Which directory should the bot use to store its state in?
STATE_DIR=/var/lib/matrix-transcriber

# Who is allowed to invite the bot into new rooms?
INVITERS="@me:example.org
@friend1:example.org
@friend2:example.com"
# Every invitation of someone else will be declined.

Usage

Execute main.py and invite the bot into a room. If someone sends an audio message into the room, it will be transcribed. (If not, check what the script wrote on its output and open an issue)

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

matrix_transcriber-0.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

matrix_transcriber-0.0.1-py3-none-any.whl (1.7 kB view details)

Uploaded Python 3

File details

Details for the file matrix_transcriber-0.0.1.tar.gz.

File metadata

  • Download URL: matrix_transcriber-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for matrix_transcriber-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e447793c965c7a115a8e70c6a977d72826d967651d16600e1fcbebbd293de256
MD5 0c0f183f7d505c8d8bb626d63741cf58
BLAKE2b-256 fc16f36ca05d22b42e9a2ea6f450867b687a48f4d93ff30d5346d4c6f8866694

See more details on using hashes here.

File details

Details for the file matrix_transcriber-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for matrix_transcriber-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 546ae668cc5b70ba59e62cd196fb363ce5782d9f1be214d4075aba4e4b6c91b4
MD5 9450a886d77534b9d512fcabdb0ae030
BLAKE2b-256 33b5e1adaf57a8f06dc01c3ec5cf88207b06d3d2988cdff79bf7b87f6fa22937

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