pip install cjm_transcription_plugin_voxtral_hfnbs/
βββ plugin.ipynb # Plugin implementation for Mistral Voxtral transcription through Hugging Face Transformers
Total: 1 notebook
graph LR
plugin[plugin<br/>Voxtral HF Plugin]
No cross-module dependencies detected.
No CLI commands found in this project.
Detailed documentation for each module in the project:
Plugin implementation for Mistral Voxtral transcription through Hugging Face Transformers
from cjm_transcription_plugin_voxtral_hf.plugin import (
VoxtralHFPlugin
)@patch
def supports_streaming(
self:VoxtralHFPlugin
) -> bool
"Check if this plugin supports streaming transcription."@patch
def execute_stream(
self:VoxtralHFPlugin,
audio: Union[AudioData, str, Path], # Audio data or path to audio file
**kwargs # Additional plugin-specific parameters
) -> Generator[str, None, TranscriptionResult]: # Yields text chunks, returns final result
"Stream transcription results chunk by chunk."class VoxtralHFPlugin:
def __init__(self):
"""Initialize the Voxtral HF plugin with default configuration."""
self.logger = logging.getLogger(f"{__name__}.{type(self).__name__}")
self.config = {}
self.model = None
self.processor = None
self.device = None
self.dtype = None
@property
def name(
self
) -> str: # Returns the plugin name
"Mistral Voxtral transcription plugin via Hugging Face Transformers."
def __init__(self):
"""Initialize the Voxtral HF plugin with default configuration."""
self.logger = logging.getLogger(f"{__name__}.{type(self).__name__}")
self.config = {}
self.model = None
self.processor = None
self.device = None
self.dtype = None
@property
def name(
self
) -> str: # Returns the plugin name
"Initialize the Voxtral HF plugin with default configuration."
def name(
self
) -> str: # Returns the plugin name
"Get the plugin name identifier."
def version(
self
) -> str: # Returns the plugin version
"Get the plugin version string."
def supported_formats(
self
) -> List[str]: # Returns list of supported audio formats
"Get the list of supported audio file formats."
def get_config_schema(
) -> Dict[str, Any]: # Returns the configuration schema dictionary
"Return configuration schema for Voxtral HF."
def get_current_config(
self
) -> Dict[str, Any]: # Returns 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: # Returns transcription result with text and metadata
"Transcribe audio using Voxtral."
def is_available(
self
) -> bool: # Returns True if Voxtral and its dependencies are available
"Check if Voxtral is available."
def cleanup(
self
) -> None
"Clean up resources with aggressive memory management."