Initial commit

This commit is contained in:
Untriex Programming
2021-08-31 22:06:02 +02:00
commit 9b6723e11e
5142 changed files with 1455625 additions and 0 deletions

View File

@@ -0,0 +1,155 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/audio/mfcc_mel_calculators.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mediapipe/calculators/audio/mfcc_mel_calculators.proto',
package='mediapipe',
syntax='proto2',
serialized_options=None,
serialized_pb=_b('\n6mediapipe/calculators/audio/mfcc_mel_calculators.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xd5\x01\n\x1cMelSpectrumCalculatorOptions\x12\x19\n\rchannel_count\x18\x01 \x01(\x05:\x02\x32\x30\x12 \n\x13min_frequency_hertz\x18\x02 \x01(\x02:\x03\x31\x32\x35\x12!\n\x13max_frequency_hertz\x18\x03 \x01(\x02:\x04\x33\x38\x30\x30\x32U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xb4\xa0\xbc% \x01(\x0b\x32\'.mediapipe.MelSpectrumCalculatorOptions\"\xc5\x01\n\x15MfccCalculatorOptions\x12\x44\n\x13mel_spectrum_params\x18\x01 \x01(\x0b\x32\'.mediapipe.MelSpectrumCalculatorOptions\x12\x16\n\nmfcc_count\x18\x02 \x01(\r:\x02\x31\x33\x32N\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\x89\x9e\xb4% \x01(\x0b\x32 .mediapipe.MfccCalculatorOptions')
,
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
_MELSPECTRUMCALCULATOROPTIONS = _descriptor.Descriptor(
name='MelSpectrumCalculatorOptions',
full_name='mediapipe.MelSpectrumCalculatorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='channel_count', full_name='mediapipe.MelSpectrumCalculatorOptions.channel_count', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='min_frequency_hertz', full_name='mediapipe.MelSpectrumCalculatorOptions.min_frequency_hertz', index=1,
number=2, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(125),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='max_frequency_hertz', full_name='mediapipe.MelSpectrumCalculatorOptions.max_frequency_hertz', index=2,
number=3, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(3800),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
_descriptor.FieldDescriptor(
name='ext', full_name='mediapipe.MelSpectrumCalculatorOptions.ext', index=0,
number=78581812, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=True, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=108,
serialized_end=321,
)
_MFCCCALCULATOROPTIONS = _descriptor.Descriptor(
name='MfccCalculatorOptions',
full_name='mediapipe.MfccCalculatorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='mel_spectrum_params', full_name='mediapipe.MfccCalculatorOptions.mel_spectrum_params', index=0,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='mfcc_count', full_name='mediapipe.MfccCalculatorOptions.mfcc_count', index=1,
number=2, type=13, cpp_type=3, label=1,
has_default_value=True, default_value=13,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
_descriptor.FieldDescriptor(
name='ext', full_name='mediapipe.MfccCalculatorOptions.ext', index=0,
number=78450441, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=True, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=324,
serialized_end=521,
)
_MFCCCALCULATOROPTIONS.fields_by_name['mel_spectrum_params'].message_type = _MELSPECTRUMCALCULATOROPTIONS
DESCRIPTOR.message_types_by_name['MelSpectrumCalculatorOptions'] = _MELSPECTRUMCALCULATOROPTIONS
DESCRIPTOR.message_types_by_name['MfccCalculatorOptions'] = _MFCCCALCULATOROPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
MelSpectrumCalculatorOptions = _reflection.GeneratedProtocolMessageType('MelSpectrumCalculatorOptions', (_message.Message,), dict(
DESCRIPTOR = _MELSPECTRUMCALCULATOROPTIONS,
__module__ = 'mediapipe.calculators.audio.mfcc_mel_calculators_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.MelSpectrumCalculatorOptions)
))
_sym_db.RegisterMessage(MelSpectrumCalculatorOptions)
MfccCalculatorOptions = _reflection.GeneratedProtocolMessageType('MfccCalculatorOptions', (_message.Message,), dict(
DESCRIPTOR = _MFCCCALCULATOROPTIONS,
__module__ = 'mediapipe.calculators.audio.mfcc_mel_calculators_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.MfccCalculatorOptions)
))
_sym_db.RegisterMessage(MfccCalculatorOptions)
_MELSPECTRUMCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _MELSPECTRUMCALCULATOROPTIONS
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_MELSPECTRUMCALCULATOROPTIONS.extensions_by_name['ext'])
_MFCCCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _MFCCCALCULATOROPTIONS
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_MFCCCALCULATOROPTIONS.extensions_by_name['ext'])
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,153 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/audio/rational_factor_resample_calculator.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mediapipe/calculators/audio/rational_factor_resample_calculator.proto',
package='mediapipe',
syntax='proto2',
serialized_options=None,
serialized_pb=_b('\nEmediapipe/calculators/audio/rational_factor_resample_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xac\x03\n\'RationalFactorResampleCalculatorOptions\x12\x1a\n\x12target_sample_rate\x18\x01 \x01(\x01\x12|\n!resampler_rational_factor_options\x18\x02 \x01(\x0b\x32Q.mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions\x12+\n\x1d\x63heck_inconsistent_timestamps\x18\x03 \x01(\x08:\x04true\x1aX\n\x1eResamplerRationalFactorOptions\x12\x0e\n\x06radius\x18\x01 \x01(\x01\x12\x0e\n\x06\x63utoff\x18\x02 \x01(\x01\x12\x16\n\x0bkaiser_beta\x18\x03 \x01(\x01:\x01\x36\x32`\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xca\xbf\xee{ \x01(\x0b\x32\x32.mediapipe.RationalFactorResampleCalculatorOptions')
,
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
_RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS = _descriptor.Descriptor(
name='ResamplerRationalFactorOptions',
full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='radius', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions.radius', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='cutoff', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions.cutoff', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='kaiser_beta', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions.kaiser_beta', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(6),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=365,
serialized_end=453,
)
_RATIONALFACTORRESAMPLECALCULATOROPTIONS = _descriptor.Descriptor(
name='RationalFactorResampleCalculatorOptions',
full_name='mediapipe.RationalFactorResampleCalculatorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='target_sample_rate', full_name='mediapipe.RationalFactorResampleCalculatorOptions.target_sample_rate', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='resampler_rational_factor_options', full_name='mediapipe.RationalFactorResampleCalculatorOptions.resampler_rational_factor_options', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='check_inconsistent_timestamps', full_name='mediapipe.RationalFactorResampleCalculatorOptions.check_inconsistent_timestamps', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
_descriptor.FieldDescriptor(
name='ext', full_name='mediapipe.RationalFactorResampleCalculatorOptions.ext', index=0,
number=259760074, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=True, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
nested_types=[_RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=123,
serialized_end=551,
)
_RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS.containing_type = _RATIONALFACTORRESAMPLECALCULATOROPTIONS
_RATIONALFACTORRESAMPLECALCULATOROPTIONS.fields_by_name['resampler_rational_factor_options'].message_type = _RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS
DESCRIPTOR.message_types_by_name['RationalFactorResampleCalculatorOptions'] = _RATIONALFACTORRESAMPLECALCULATOROPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
RationalFactorResampleCalculatorOptions = _reflection.GeneratedProtocolMessageType('RationalFactorResampleCalculatorOptions', (_message.Message,), dict(
ResamplerRationalFactorOptions = _reflection.GeneratedProtocolMessageType('ResamplerRationalFactorOptions', (_message.Message,), dict(
DESCRIPTOR = _RATIONALFACTORRESAMPLECALCULATOROPTIONS_RESAMPLERRATIONALFACTOROPTIONS,
__module__ = 'mediapipe.calculators.audio.rational_factor_resample_calculator_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions)
))
,
DESCRIPTOR = _RATIONALFACTORRESAMPLECALCULATOROPTIONS,
__module__ = 'mediapipe.calculators.audio.rational_factor_resample_calculator_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.RationalFactorResampleCalculatorOptions)
))
_sym_db.RegisterMessage(RationalFactorResampleCalculatorOptions)
_sym_db.RegisterMessage(RationalFactorResampleCalculatorOptions.ResamplerRationalFactorOptions)
_RATIONALFACTORRESAMPLECALCULATOROPTIONS.extensions_by_name['ext'].message_type = _RATIONALFACTORRESAMPLECALCULATOROPTIONS
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_RATIONALFACTORRESAMPLECALCULATOROPTIONS.extensions_by_name['ext'])
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,196 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/audio/spectrogram_calculator.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mediapipe/calculators/audio/spectrogram_calculator.proto',
package='mediapipe',
syntax='proto2',
serialized_options=None,
serialized_pb=_b('\n8mediapipe/calculators/audio/spectrogram_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xef\x04\n\x1cSpectrogramCalculatorOptions\x12\x1e\n\x16\x66rame_duration_seconds\x18\x01 \x01(\x01\x12 \n\x15\x66rame_overlap_seconds\x18\x02 \x01(\x01:\x01\x30\x12\x1e\n\x10pad_final_packet\x18\x03 \x01(\x08:\x04true\x12Z\n\x0boutput_type\x18\x04 \x01(\x0e\x32\x32.mediapipe.SpectrogramCalculatorOptions.OutputType:\x11SQUARED_MAGNITUDE\x12\'\n\x18\x61llow_multichannel_input\x18\x05 \x01(\x08:\x05\x66\x61lse\x12M\n\x0bwindow_type\x18\x06 \x01(\x0e\x32\x32.mediapipe.SpectrogramCalculatorOptions.WindowType:\x04HANN\x12\x17\n\x0coutput_scale\x18\x07 \x01(\x01:\x01\x31\x12\"\n\x13use_local_timestamp\x18\x08 \x01(\x08:\x05\x66\x61lse\"T\n\nOutputType\x12\x15\n\x11SQUARED_MAGNITUDE\x10\x00\x12\x14\n\x10LINEAR_MAGNITUDE\x10\x01\x12\x0c\n\x08\x44\x45\x43IBELS\x10\x02\x12\x0b\n\x07\x43OMPLEX\x10\x03\"/\n\nWindowType\x12\x08\n\x04HANN\x10\x00\x12\x0b\n\x07HAMMING\x10\x01\x12\n\n\x06\x43OSINE\x10\x02\x32U\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc0\x88\xaa$ \x01(\x0b\x32\'.mediapipe.SpectrogramCalculatorOptions')
,
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE = _descriptor.EnumDescriptor(
name='OutputType',
full_name='mediapipe.SpectrogramCalculatorOptions.OutputType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='SQUARED_MAGNITUDE', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='LINEAR_MAGNITUDE', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='DECIBELS', index=2, number=2,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='COMPLEX', index=3, number=3,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=513,
serialized_end=597,
)
_sym_db.RegisterEnumDescriptor(_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE)
_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE = _descriptor.EnumDescriptor(
name='WindowType',
full_name='mediapipe.SpectrogramCalculatorOptions.WindowType',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='HANN', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='HAMMING', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='COSINE', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=599,
serialized_end=646,
)
_sym_db.RegisterEnumDescriptor(_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE)
_SPECTROGRAMCALCULATOROPTIONS = _descriptor.Descriptor(
name='SpectrogramCalculatorOptions',
full_name='mediapipe.SpectrogramCalculatorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='frame_duration_seconds', full_name='mediapipe.SpectrogramCalculatorOptions.frame_duration_seconds', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='frame_overlap_seconds', full_name='mediapipe.SpectrogramCalculatorOptions.frame_overlap_seconds', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='pad_final_packet', full_name='mediapipe.SpectrogramCalculatorOptions.pad_final_packet', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='output_type', full_name='mediapipe.SpectrogramCalculatorOptions.output_type', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='allow_multichannel_input', full_name='mediapipe.SpectrogramCalculatorOptions.allow_multichannel_input', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='window_type', full_name='mediapipe.SpectrogramCalculatorOptions.window_type', index=5,
number=6, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='output_scale', full_name='mediapipe.SpectrogramCalculatorOptions.output_scale', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='use_local_timestamp', full_name='mediapipe.SpectrogramCalculatorOptions.use_local_timestamp', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
_descriptor.FieldDescriptor(
name='ext', full_name='mediapipe.SpectrogramCalculatorOptions.ext', index=0,
number=76186688, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=True, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
nested_types=[],
enum_types=[
_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE,
_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=110,
serialized_end=733,
)
_SPECTROGRAMCALCULATOROPTIONS.fields_by_name['output_type'].enum_type = _SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE
_SPECTROGRAMCALCULATOROPTIONS.fields_by_name['window_type'].enum_type = _SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE
_SPECTROGRAMCALCULATOROPTIONS_OUTPUTTYPE.containing_type = _SPECTROGRAMCALCULATOROPTIONS
_SPECTROGRAMCALCULATOROPTIONS_WINDOWTYPE.containing_type = _SPECTROGRAMCALCULATOROPTIONS
DESCRIPTOR.message_types_by_name['SpectrogramCalculatorOptions'] = _SPECTROGRAMCALCULATOROPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
SpectrogramCalculatorOptions = _reflection.GeneratedProtocolMessageType('SpectrogramCalculatorOptions', (_message.Message,), dict(
DESCRIPTOR = _SPECTROGRAMCALCULATOROPTIONS,
__module__ = 'mediapipe.calculators.audio.spectrogram_calculator_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.SpectrogramCalculatorOptions)
))
_sym_db.RegisterMessage(SpectrogramCalculatorOptions)
_SPECTROGRAMCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _SPECTROGRAMCALCULATOROPTIONS
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_SPECTROGRAMCALCULATOROPTIONS.extensions_by_name['ext'])
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,99 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/audio/stabilized_log_calculator.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mediapipe/calculators/audio/stabilized_log_calculator.proto',
package='mediapipe',
syntax='proto2',
serialized_options=None,
serialized_pb=_b('\n;mediapipe/calculators/audio/stabilized_log_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xd0\x01\n\x1eStabilizedLogCalculatorOptions\x12\x19\n\nstabilizer\x18\x01 \x01(\x02:\x05\x31\x65-05\x12!\n\x13\x63heck_nonnegativity\x18\x02 \x01(\x08:\x04true\x12\x17\n\x0coutput_scale\x18\x03 \x01(\x01:\x01\x31\x32W\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xe3\xa1\xd0\x30 \x01(\x0b\x32).mediapipe.StabilizedLogCalculatorOptions')
,
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
_STABILIZEDLOGCALCULATOROPTIONS = _descriptor.Descriptor(
name='StabilizedLogCalculatorOptions',
full_name='mediapipe.StabilizedLogCalculatorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='stabilizer', full_name='mediapipe.StabilizedLogCalculatorOptions.stabilizer', index=0,
number=1, type=2, cpp_type=6, label=1,
has_default_value=True, default_value=float(1e-05),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='check_nonnegativity', full_name='mediapipe.StabilizedLogCalculatorOptions.check_nonnegativity', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='output_scale', full_name='mediapipe.StabilizedLogCalculatorOptions.output_scale', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
_descriptor.FieldDescriptor(
name='ext', full_name='mediapipe.StabilizedLogCalculatorOptions.ext', index=0,
number=101978339, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=True, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=113,
serialized_end=321,
)
DESCRIPTOR.message_types_by_name['StabilizedLogCalculatorOptions'] = _STABILIZEDLOGCALCULATOROPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
StabilizedLogCalculatorOptions = _reflection.GeneratedProtocolMessageType('StabilizedLogCalculatorOptions', (_message.Message,), dict(
DESCRIPTOR = _STABILIZEDLOGCALCULATOROPTIONS,
__module__ = 'mediapipe.calculators.audio.stabilized_log_calculator_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.StabilizedLogCalculatorOptions)
))
_sym_db.RegisterMessage(StabilizedLogCalculatorOptions)
_STABILIZEDLOGCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _STABILIZEDLOGCALCULATOROPTIONS
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_STABILIZEDLOGCALCULATOROPTIONS.extensions_by_name['ext'])
# @@protoc_insertion_point(module_scope)

View File

@@ -0,0 +1,149 @@
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: mediapipe/calculators/audio/time_series_framer_calculator.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from mediapipe.framework import calculator_pb2 as mediapipe_dot_framework_dot_calculator__pb2
try:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe_dot_framework_dot_calculator__options__pb2
except AttributeError:
mediapipe_dot_framework_dot_calculator__options__pb2 = mediapipe_dot_framework_dot_calculator__pb2.mediapipe.framework.calculator_options_pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='mediapipe/calculators/audio/time_series_framer_calculator.proto',
package='mediapipe',
syntax='proto2',
serialized_options=None,
serialized_pb=_b('\n?mediapipe/calculators/audio/time_series_framer_calculator.proto\x12\tmediapipe\x1a$mediapipe/framework/calculator.proto\"\xc5\x03\n!TimeSeriesFramerCalculatorOptions\x12\x1e\n\x16\x66rame_duration_seconds\x18\x01 \x01(\x01\x12 \n\x15\x66rame_overlap_seconds\x18\x02 \x01(\x01:\x01\x30\x12/\n emulate_fractional_frame_overlap\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x10pad_final_packet\x18\x03 \x01(\x08:\x04true\x12Z\n\x0fwindow_function\x18\x04 \x01(\x0e\x32;.mediapipe.TimeSeriesFramerCalculatorOptions.WindowFunction:\x04NONE\x12\"\n\x13use_local_timestamp\x18\x06 \x01(\x08:\x05\x66\x61lse\"1\n\x0eWindowFunction\x12\x08\n\x04NONE\x10\x00\x12\x0b\n\x07HAMMING\x10\x01\x12\x08\n\x04HANN\x10\x02\x32Z\n\x03\x65xt\x12\x1c.mediapipe.CalculatorOptions\x18\xc5\xa7\x92\x18 \x01(\x0b\x32,.mediapipe.TimeSeriesFramerCalculatorOptions')
,
dependencies=[mediapipe_dot_framework_dot_calculator__pb2.DESCRIPTOR,])
_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION = _descriptor.EnumDescriptor(
name='WindowFunction',
full_name='mediapipe.TimeSeriesFramerCalculatorOptions.WindowFunction',
filename=None,
file=DESCRIPTOR,
values=[
_descriptor.EnumValueDescriptor(
name='NONE', index=0, number=0,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='HAMMING', index=1, number=1,
serialized_options=None,
type=None),
_descriptor.EnumValueDescriptor(
name='HANN', index=2, number=2,
serialized_options=None,
type=None),
],
containing_type=None,
serialized_options=None,
serialized_start=429,
serialized_end=478,
)
_sym_db.RegisterEnumDescriptor(_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION)
_TIMESERIESFRAMERCALCULATOROPTIONS = _descriptor.Descriptor(
name='TimeSeriesFramerCalculatorOptions',
full_name='mediapipe.TimeSeriesFramerCalculatorOptions',
filename=None,
file=DESCRIPTOR,
containing_type=None,
fields=[
_descriptor.FieldDescriptor(
name='frame_duration_seconds', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.frame_duration_seconds', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='frame_overlap_seconds', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.frame_overlap_seconds', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='emulate_fractional_frame_overlap', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.emulate_fractional_frame_overlap', index=2,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='pad_final_packet', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.pad_final_packet', index=3,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='window_function', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.window_function', index=4,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
_descriptor.FieldDescriptor(
name='use_local_timestamp', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.use_local_timestamp', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
extensions=[
_descriptor.FieldDescriptor(
name='ext', full_name='mediapipe.TimeSeriesFramerCalculatorOptions.ext', index=0,
number=50631621, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=True, extension_scope=None,
serialized_options=None, file=DESCRIPTOR),
],
nested_types=[],
enum_types=[
_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=117,
serialized_end=570,
)
_TIMESERIESFRAMERCALCULATOROPTIONS.fields_by_name['window_function'].enum_type = _TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION
_TIMESERIESFRAMERCALCULATOROPTIONS_WINDOWFUNCTION.containing_type = _TIMESERIESFRAMERCALCULATOROPTIONS
DESCRIPTOR.message_types_by_name['TimeSeriesFramerCalculatorOptions'] = _TIMESERIESFRAMERCALCULATOROPTIONS
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
TimeSeriesFramerCalculatorOptions = _reflection.GeneratedProtocolMessageType('TimeSeriesFramerCalculatorOptions', (_message.Message,), dict(
DESCRIPTOR = _TIMESERIESFRAMERCALCULATOROPTIONS,
__module__ = 'mediapipe.calculators.audio.time_series_framer_calculator_pb2'
# @@protoc_insertion_point(class_scope:mediapipe.TimeSeriesFramerCalculatorOptions)
))
_sym_db.RegisterMessage(TimeSeriesFramerCalculatorOptions)
_TIMESERIESFRAMERCALCULATOROPTIONS.extensions_by_name['ext'].message_type = _TIMESERIESFRAMERCALCULATOROPTIONS
mediapipe_dot_framework_dot_calculator__options__pb2.CalculatorOptions.RegisterExtension(_TIMESERIESFRAMERCALCULATOROPTIONS.extensions_by_name['ext'])
# @@protoc_insertion_point(module_scope)