Classifier
transcribe.classifier
SpeakerClassifier
A class to run audio classification.
Attributes:
Name | Type | Description |
---|---|---|
audio_url |
str
|
S3 URL pointing to the audio. |
Source code in src/transcribe/classifier.py
__init__(audio_url)
Constructor for the SpeakerClassifier
class.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
audio_url |
str
|
S3 URL pointing to the audio. |
required |
Source code in src/transcribe/classifier.py
predict()
Predicts the audio's speaker type, either child or adult.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
"ADULT" or "CHILD", optionally "None" if errs. |