Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add library mode support to audio extraction #535

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

edknv
Copy link
Collaborator

@edknv edknv commented Mar 10, 2025

Description

This PR enables library mode with audio extraction.

from nv_ingest.util.pipeline.pipeline_runners import PipelineCreationSchema

config = PipelineCreationSchema(
    audio_grpc_endpoint="grpc.nvcf.nvidia.com:443",
    audio_function_id="<redacted>",
)

pipeline_process = start_pipeline_subprocess(config)

client = NvIngestClient(
    message_client_allocator=SimpleClient,
    message_client_port=7671,
    message_client_hostname="localhost"
)

ingestor = (
    Ingestor(client=client)
    .files("/work/data/audio/*.wav")
    .extract(
        extract_method="audio",
    )
)

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.
  • If adjusting docker-compose.yaml environment variables have you ensured those are mimicked in the Helm values.yaml file.

@edknv edknv requested a review from a team as a code owner March 10, 2025 05:46
@edknv edknv requested review from jperez999 and removed request for a team March 10, 2025 05:46
@edknv edknv requested a review from ChrisJar March 10, 2025 06:56
@jdye64 jdye64 merged commit 4fbbc01 into NVIDIA:main Mar 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants