Moved audio_record.py to tasks/python/audio/core
This commit is contained in:
parent
78e48825ae
commit
444cd00ee6
|
@ -23,6 +23,11 @@ py_library(
|
|||
srcs = ["audio_task_running_mode.py"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "audio_record",
|
||||
srcs = ["audio_record.py"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "base_audio_task_api",
|
||||
srcs = [
|
||||
|
@ -30,10 +35,10 @@ py_library(
|
|||
],
|
||||
deps = [
|
||||
":audio_task_running_mode",
|
||||
":audio_record",
|
||||
"//mediapipe/framework:calculator_py_pb2",
|
||||
"//mediapipe/python:_framework_bindings",
|
||||
"//mediapipe/python:packet_creator",
|
||||
"//mediapipe/tasks/python/core:optional_dependencies",
|
||||
"//mediapipe/tasks/python/components/containers:audio_record",
|
||||
],
|
||||
)
|
||||
|
|
|
@ -21,8 +21,8 @@ from mediapipe.python._framework_bindings import packet as packet_module
|
|||
from mediapipe.python._framework_bindings import task_runner as task_runner_module
|
||||
from mediapipe.python._framework_bindings import timestamp as timestamp_module
|
||||
from mediapipe.tasks.python.audio.core import audio_task_running_mode as running_mode_module
|
||||
from mediapipe.tasks.python.audio.core import audio_record
|
||||
from mediapipe.tasks.python.core.optional_dependencies import doc_controls
|
||||
from mediapipe.tasks.python.components.containers import audio_record
|
||||
|
||||
_TaskRunner = task_runner_module.TaskRunner
|
||||
_Packet = packet_module.Packet
|
||||
|
|
|
@ -23,11 +23,6 @@ py_library(
|
|||
srcs = ["audio_data.py"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "audio_record",
|
||||
srcs = ["audio_record.py"],
|
||||
)
|
||||
|
||||
py_library(
|
||||
name = "bounding_box",
|
||||
srcs = ["bounding_box.py"],
|
||||
|
|
|
@ -27,9 +27,9 @@ py_test(
|
|||
],
|
||||
deps = [
|
||||
"//mediapipe/tasks/python/audio:audio_classifier",
|
||||
"//mediapipe/tasks/python/audio/core:audio_record",
|
||||
"//mediapipe/tasks/python/audio/core:audio_task_running_mode",
|
||||
"//mediapipe/tasks/python/components/containers:audio_data",
|
||||
"//mediapipe/tasks/python/components/containers:audio_record",
|
||||
"//mediapipe/tasks/python/components/containers:classification_result",
|
||||
"//mediapipe/tasks/python/core:base_options",
|
||||
"//mediapipe/tasks/python/test:test_utils",
|
||||
|
@ -45,9 +45,9 @@ py_test(
|
|||
],
|
||||
deps = [
|
||||
"//mediapipe/tasks/python/audio:audio_embedder",
|
||||
"//mediapipe/tasks/python/audio/core:audio_record",
|
||||
"//mediapipe/tasks/python/audio/core:audio_task_running_mode",
|
||||
"//mediapipe/tasks/python/components/containers:audio_data",
|
||||
"//mediapipe/tasks/python/components/containers:audio_record",
|
||||
"//mediapipe/tasks/python/components/containers:embedding_result",
|
||||
"//mediapipe/tasks/python/core:base_options",
|
||||
"//mediapipe/tasks/python/test:test_utils",
|
||||
|
|
|
@ -25,9 +25,9 @@ from scipy.io import wavfile
|
|||
|
||||
from mediapipe.tasks.python.audio import audio_classifier
|
||||
from mediapipe.tasks.python.audio.core import audio_task_running_mode
|
||||
from mediapipe.tasks.python.audio.core import audio_record
|
||||
from mediapipe.tasks.python.components.containers import audio_data as audio_data_module
|
||||
from mediapipe.tasks.python.components.containers import classification_result as classification_result_module
|
||||
from mediapipe.tasks.python.components.containers import audio_record
|
||||
from mediapipe.tasks.python.core import base_options as base_options_module
|
||||
from mediapipe.tasks.python.test import test_utils
|
||||
|
||||
|
|
|
@ -25,8 +25,8 @@ from scipy.io import wavfile
|
|||
|
||||
from mediapipe.tasks.python.audio import audio_embedder
|
||||
from mediapipe.tasks.python.audio.core import audio_task_running_mode
|
||||
from mediapipe.tasks.python.audio.core import audio_record
|
||||
from mediapipe.tasks.python.components.containers import audio_data as audio_data_module
|
||||
from mediapipe.tasks.python.components.containers import audio_record
|
||||
from mediapipe.tasks.python.core import base_options as base_options_module
|
||||
from mediapipe.tasks.python.test import test_utils
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user