sparknlp.annotation_audio#

Contains the AnnotationAudio data format

Module Contents#

Classes#

AnnotationAudio

Represents the output of Spark NLP Annotators for audio output and their details.

class AnnotationAudio(annotatorType, result, metadata)[source]#

Represents the output of Spark NLP Annotators for audio output and their details.

Parameters:
annotator_typestr

The type of the output of the annotator. Possible values are AUDIO.

resultlist(floats)

Audio data in floats - already loaded/processed audio files

metadatadict

Associated metadata for this annotation

copy(result)[source]#

Creates new AnnotationAudio with a different result, containing all settings of this Annotation.

Parameters:
resultlist(bytes)

The result of the annotation that should be copied.

Returns:
AnnotationAudio

Newly created AnnotationAudio