Audio Classification
Transformers
Safetensors
speech_truncation_detection
feature-extraction
audio
speech
truncation-detection
custom-code
custom_code
Instructions to use mythicinfinity/speech-truncation-detection-12M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mythicinfinity/speech-truncation-detection-12M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="mythicinfinity/speech-truncation-detection-12M", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("mythicinfinity/speech-truncation-detection-12M", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| try: | |
| from .configuration_speech_truncation_detection import SpeechTruncationDetectionConfig | |
| from .modeling_speech_truncation_detection import ( | |
| SpeechTruncationDetectionModel, | |
| SpeechTruncationPrediction, | |
| ) | |
| from .processing_speech_truncation_detection import SpeechTruncationDetectionProcessor | |
| except ImportError: | |
| # Fallback for direct module loading where package-relative imports are unavailable. | |
| from configuration_speech_truncation_detection import SpeechTruncationDetectionConfig | |
| from modeling_speech_truncation_detection import ( | |
| SpeechTruncationDetectionModel, | |
| SpeechTruncationPrediction, | |
| ) | |
| from processing_speech_truncation_detection import SpeechTruncationDetectionProcessor | |
| __all__ = [ | |
| "SpeechTruncationDetectionConfig", | |
| "SpeechTruncationDetectionModel", | |
| "SpeechTruncationPrediction", | |
| "SpeechTruncationDetectionProcessor", | |
| ] | |