djai.model.models.ml.hugging_face.speech_recognition module¶
DjAI Pre-Trained Hugging Face Speech Recognizer Model class.
- class djai.model.models.ml.hugging_face.speech_recognition.PreTrainedHuggingFaceSpeechRecognizer(*args, **kwargs)[source]¶
Bases:
djai.model.models.ml.hugging_face.base.PreTrainedHuggingFaceTransformer
DjAI Pre-Trained Hugging Face Speech Recognizer Model class.
- exception DoesNotExist¶
Bases:
djai.model.models.ml.hugging_face.base.PreTrainedHuggingFaceTransformer.DoesNotExist
- exception MultipleObjectsReturned¶
Bases:
djai.model.models.ml.hugging_face.base.PreTrainedHuggingFaceTransformer.MultipleObjectsReturned
- gradio_ui = Gradio Interface for: _predict ------------------------------ inputs: |-Audio(label="Recorded Speech to Transcribe") outputs: |-Textbox(label="Transcribed Text")¶
- polymorphic_primary_key_name = 'uuid'¶
- polymorphic_super_sub_accessors_replaced = False¶
- predict(speech_or_speeches: Union[numpy.ndarray, str, collections.abc.Sequence[Union[numpy.ndarray, str]]]) Union[str, List[str]] [source]¶
Recognize Speech(es).
- pretrainedhuggingfacetransformer_ptr¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
- pretrainedhuggingfacetransformer_ptr_id¶