Skip to content

Instantly share code, notes, and snippets.

@carlsc2
carlsc2 / audio_transcriber.py
Last active November 9, 2023 02:57
This is a basic script using openai whisper variants to read from both mic and stereo mix and write transcriptions to a file. There is no speaker diarization, but mic and system are tagged as such. Additionally, the audio streams are denoised and split based on silence (determined by moving average of decibels with threshold tuned to human speec…
"""
================================================================================
MIT License
Copyright (c) 2023 Craig Carlson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell