Skip to content

Commit 3da2db6

Browse files
committed
Translate audio processing examples to dynamic mode
Signed-off-by: Rostan Tabet <[email protected]>
1 parent f7d5782 commit 3da2db6

File tree

8 files changed

+840
-16
lines changed

8 files changed

+840
-16
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ docs/dali.png
2828
docs/nvidia.ico
2929
docs/operations/*
3030
docs/dali_dynamic/operations/*
31-
docs/examples/audio_processing/index.rst
31+
docs/examples/audio_processing/**/index.rst
3232
docs/examples/custom_operations/index.rst
3333
docs/examples/general/data_loading/**/index.rst
3434
docs/examples/general/expressions/index.rst

docs/examples/audio_processing/audio_decoder/dynamic_mode.ipynb

Lines changed: 212 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from doc_index import doc, doc_entry, op_reference
16+
17+
doc(
18+
title="Audio Decoder",
19+
underline_char="=",
20+
options=":maxdepth: 1",
21+
entries=[
22+
doc_entry(
23+
"Pipeline Mode <pipeline_mode.ipynb>",
24+
op_reference("fn.decoders.audio", "Audio decoder tutorial"),
25+
),
26+
doc_entry(
27+
"Dynamic Mode <dynamic_mode.ipynb>",
28+
op_reference("dynamic.decoders.audio", "Audio decoder tutorial"),
29+
),
30+
],
31+
)

docs/examples/audio_processing/audio_decoder.ipynb renamed to docs/examples/audio_processing/audio_decoder/pipeline_mode.ipynb

File renamed without changes.

docs/examples/audio_processing/index.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,7 @@
1818
title="Audio Processing",
1919
underline_char="=",
2020
entries=[
21-
doc_entry(
22-
"audio_decoder.ipynb",
23-
op_reference("fn.decoders.audio", "Audio decoder tutorial"),
24-
),
25-
doc_entry(
26-
"spectrogram.ipynb",
27-
[
28-
op_reference("fn.spectrogram", "Audio spectrogram tutorial"),
29-
op_reference(
30-
"fn.mel_filter_bank", "Audio spectrogram tutorial"
31-
),
32-
op_reference("fn.to_decibels", "Audio spectrogram tutorial"),
33-
op_reference("fn.mfcc", "Audio spectrogram tutorial"),
34-
],
35-
),
21+
"audio_decoder/index.py",
22+
"spectrogram/index.py",
3623
],
3724
)

docs/examples/audio_processing/spectrogram/dynamic_mode.ipynb

Lines changed: 545 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
from doc_index import doc, doc_entry, op_reference
16+
17+
doc(
18+
title="Audio Spectrogram",
19+
underline_char="=",
20+
options=":maxdepth: 1",
21+
entries=[
22+
doc_entry(
23+
"Pipeline Mode <pipeline_mode.ipynb>",
24+
[
25+
op_reference("fn.spectrogram", "Audio spectrogram tutorial"),
26+
op_reference(
27+
"fn.mel_filter_bank", "Audio spectrogram tutorial"
28+
),
29+
op_reference("fn.to_decibels", "Audio spectrogram tutorial"),
30+
op_reference("fn.mfcc", "Audio spectrogram tutorial"),
31+
],
32+
),
33+
doc_entry(
34+
"Dynamic Mode <dynamic_mode.ipynb>",
35+
[
36+
op_reference(
37+
"dynamic.spectrogram", "Audio spectrogram tutorial"
38+
),
39+
op_reference(
40+
"dynamic.mel_filter_bank", "Audio spectrogram tutorial"
41+
),
42+
op_reference(
43+
"dynamic.to_decibels", "Audio spectrogram tutorial"
44+
),
45+
op_reference("dynamic.mfcc", "Audio spectrogram tutorial"),
46+
],
47+
),
48+
],
49+
)

docs/examples/audio_processing/spectrogram.ipynb renamed to docs/examples/audio_processing/spectrogram/pipeline_mode.ipynb

File renamed without changes.

0 commit comments

Comments
 (0)