Skip to main content

Tool for transcribing breaths from audio files

Project description

PyBreathTranscript

PyPi

This package is used for transcribing breath recordings (captured using an in-ear microphone) into text symbols.

Check Full project to see this library in action.

Quickstart

Install the package:

pip install -i https://test.pypi.org/simple/ PyBreathTranscript

or

pip install git+https://github.com/ilya-shlom/PyBreathTranscript.git

Example usage:

from PyBreathTranscript import transcript as bt

result = bt.transcript("breath.wav", bt.FINGERPRINT)
print(result)

Usage

Import library into your project using

from PyBreathTranscript import transcript as bt

To transcribe a recording of your breath, use the bt.transcript(file_path, method) function:

transcript = bt.transcript("path/to/your/recording.wav", bt.FINGERPRINT)

file_path: str - path of your recording.

method: int - method used to transcribe an audio file. There are two methods available now acceptable by constants:

  1. bt.FINGERPRINT – method based on an audio fingerprinting algorithm. This is the recommended and default method.

  2. bt.WAVEFORM – compares waveforms and returns the best-matching symbol. This approach is more realistic but less distinctive, recommended for demonstration purposes only.


Please note: this library is created for educational and demonstration purposes. For the best experience, an in-ear microphone based on the BOYA BY-M1 Lavalier microphone is recommended.

This project is a part of my graduation work, Cyrillic symbols are one of requirements for the system.

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

pybreathtranscript-1.0.0.tar.gz (520.1 kB view details)

Uploaded Source

Built Distribution

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

pybreathtranscript-1.0.0-py3-none-any.whl (533.6 kB view details)

Uploaded Python 3

File details

Details for the file pybreathtranscript-1.0.0.tar.gz.

File metadata

  • Download URL: pybreathtranscript-1.0.0.tar.gz
  • Upload date:
  • Size: 520.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for pybreathtranscript-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6168c9afb63c4e38d5051990811704cbe185a0627e36944b8aeaf232a245128a
MD5 8546459de3f8d2d7efc05c6526286527
BLAKE2b-256 b3b5d29f9f8ea0a618bc3e0a564ea26be3e444bc5e87f06d9d31080769f2aba3

See more details on using hashes here.

File details

Details for the file pybreathtranscript-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pybreathtranscript-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5ce2fe01597586601eeb785101751654dedde7a1e2410694d533104a8e96f73a
MD5 4c7ace56093b713704874d948b70f58c
BLAKE2b-256 c1bc7f6c0204037dad269c784bf57bc1b63f6e17618e289a9eefb0ed151057b2

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