OpenAI Whisper plugin for the cjm-transcription-plugin-system library - provides local speech-to-text transcription with configurable model selection and parameter control.
Project description
cjm-transcription-plugin-whisper
Install
pip install cjm_transcription_plugin_whisper
Project Structure
nbs/
└── plugin.ipynb # Plugin implementation for OpenAI Whisper transcription
Total: 1 notebook across 1 directory
Module Dependencies
graph LR
plugin[plugin<br/>Whisper Plugin]
No cross-module dependencies detected.
CLI Reference
No CLI commands found in this project.
Module Overview
Detailed documentation for each module in the project:
Whisper Plugin (plugin.ipynb)
Plugin implementation for OpenAI Whisper transcription
Import
from cjm_transcription_plugin_whisper.plugin import (
WhisperLocalPlugin
)
Classes
class WhisperLocalPlugin:
def __init__(self):
"""Initialize the Whisper plugin with default configuration."""
self.logger = logging.getLogger(f"{__name__}.{type(self).__name__}")
self.config = {}
self.model = None
self.device = None
self.model_dir = None
@property
def name(
self
) -> str: # the plugin name identifier
"OpenAI Whisper transcription plugin."
def __init__(self):
"""Initialize the Whisper plugin with default configuration."""
self.logger = logging.getLogger(f"{__name__}.{type(self).__name__}")
self.config = {}
self.model = None
self.device = None
self.model_dir = None
@property
def name(
self
) -> str: # the plugin name identifier
"Initialize the Whisper plugin with default configuration."
def name(
self
) -> str: # the plugin name identifier
"Get the plugin name identifier."
def version(
self
) -> str: # the plugin version string
"Get the plugin version string."
def supported_formats(
self
) -> List[str]: # list of supported audio file formats
"Get the list of supported audio file formats."
def get_config_schema(
) -> Dict[str, Any]: # the configuration schema dictionary
"Return configuration schema for Whisper."
def get_current_config(
self
) -> Dict[str, Any]: # the current configuration dictionary
"Return current configuration."
def initialize(
self,
config: Optional[Dict[str, Any]] = None # configuration dictionary to initialize the plugin
) -> None
"Initialize the plugin with configuration."
def execute(
self,
audio: Union[AudioData, str, Path], # audio data or path to audio file to transcribe
**kwargs # additional arguments to override config
) -> TranscriptionResult: # transcription result with text and metadata
"Transcribe audio using Whisper."
def is_available(
self
) -> bool: # True if Whisper and its dependencies are available
"Check if Whisper is available."
def cleanup(
self
) -> None
"Clean up resources."
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cjm_transcription_plugin_whisper-0.0.5.tar.gz.
File metadata
- Download URL: cjm_transcription_plugin_whisper-0.0.5.tar.gz
- Upload date:
- Size: 13.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
487eabfa87fefd963409970a98557f36cdc7c27be1863fcfdc47909609c3ae2b
|
|
| MD5 |
882702abf6433332240610851a27d267
|
|
| BLAKE2b-256 |
4c5deef989b2a0480da1768add09dc83c309bc23c8fd5a4723f4e8075ebba924
|
File details
Details for the file cjm_transcription_plugin_whisper-0.0.5-py3-none-any.whl.
File metadata
- Download URL: cjm_transcription_plugin_whisper-0.0.5-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bd52c00a2eefda41950cfa158c75965de37d5074740204a2f3f4159ecb4e35b
|
|
| MD5 |
078ba1533a0d6ccc6a2ffbd08ee20627
|
|
| BLAKE2b-256 |
8bf3487ea14a884207df7f50deaac44ae8ccf8bdbf85b154d1ce63d79184c72d
|