From f2ae2433f77e6bc905b58914e085045642a0c5d6 Mon Sep 17 00:00:00 2001 From: fayejf <36722593+fayejf@users.noreply.github.com> Date: Mon, 27 Mar 2023 18:37:46 -0700 Subject: [PATCH] update and deprecate warning for Mic notebook (#6307) * update Online_ASR_Microphone_Demo.ipynb Signed-off-by: fayejf * update Online_Offline_Speech_Commands_Demo.ipynb Signed-off-by: fayejf * update Online_Offline_Microphone_VAD_Demo.ipynb Signed-off-by: fayejf * update Online_Offline_Microphone_VAD_Demo.ipynb \n Signed-off-by: fayejf * remove 'each' Signed-off-by: fayejf --------- Signed-off-by: fayejf --- .../asr/Online_ASR_Microphone_Demo.ipynb | 23 +++---------------- .../Online_Offline_Microphone_VAD_Demo.ipynb | 18 ++++++--------- .../Online_Offline_Speech_Commands_Demo.ipynb | 14 ++++------- 3 files changed, 14 insertions(+), 41 deletions(-) diff --git a/tutorials/asr/Online_ASR_Microphone_Demo.ipynb b/tutorials/asr/Online_ASR_Microphone_Demo.ipynb index b7031a074c02..6c99856f04ad 100644 --- a/tutorials/asr/Online_ASR_Microphone_Demo.ipynb +++ b/tutorials/asr/Online_ASR_Microphone_Demo.ipynb @@ -29,9 +29,6 @@ "BRANCH = 'main'\n", "!python -m pip install git+https://github.com/NVIDIA/NeMo.git@$BRANCH#egg=nemo_toolkit[asr]\n", "\n", - "## Install TorchAudio\n", - "!pip install torchaudio>=0.13.0 -f https://download.pytorch.org/whl/torch_stable.html\n", - "\n", "## Grab the config we'll use in this example\n", "!mkdir configs" ] @@ -42,8 +39,7 @@ "source": [ "This notebook demonstrates automatic speech recognition (ASR) from a microphone's stream in NeMo.\n", "\n", - "It is **not a recommended** way to do inference in production workflows. If you are interested in \n", - "production-level inference using NeMo ASR models, please refer to NVIDIA RIVA: https://developer.nvidia.com/riva" + "It is **not a recommended** way to do inference in production workflows. And the incompatibility of components could lead to failure of running this notebook locally with container, we might deprecate this notebook and provide a better tutorial in soon releases. If you are interested in production-level inference using NeMo ASR models, please refer to NVIDIA RIVA: https://developer.nvidia.com/riva" ] }, { @@ -53,24 +49,11 @@ "The notebook requires PyAudio library to get a signal from an audio device.\n", "For Ubuntu, please run the following commands to install it:\n", "```\n", - "sudo apt-get install -y portaudio19-dev\n", + "sudo apt install python3-pyaudio\n", "pip install pyaudio\n", "```" ] }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "This notebook requires the `torchaudio` library to be installed for MatchboxNet. Please follow the instructions available at the [torchaudio Github page](https://github.com/pytorch/audio#installation) to install the appropriate version of torchaudio.\n", - "\n", - "If you would like to install the latest version, please run the following command to install it:\n", - "\n", - "```\n", - "conda install -c pytorch torchaudio\n", - "```" - ] - }, { "cell_type": "code", "execution_count": null, @@ -537,4 +520,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +} diff --git a/tutorials/asr/Online_Offline_Microphone_VAD_Demo.ipynb b/tutorials/asr/Online_Offline_Microphone_VAD_Demo.ipynb index 21b85eaea940..da15b5009b6a 100644 --- a/tutorials/asr/Online_Offline_Microphone_VAD_Demo.ipynb +++ b/tutorials/asr/Online_Offline_Microphone_VAD_Demo.ipynb @@ -43,9 +43,11 @@ "This notebook demonstrates how to perform\n", "1. [offline streaming inference on audio files (offline VAD)](#Offline-streaming-inference);\n", "2. [finetuning](#Finetune) and use [posterior](#Posterior);\n", - "2. [vad postprocessing and threshold tuning](#VAD-postprocessing-and-Tuning-threshold);\n", + "3. [vad postprocessing and threshold tuning](#VAD-postprocessing-and-Tuning-threshold);\n", "4. [online streaming inference](#Online-streaming-inference);\n", - "3. [online streaming inference from a microphone's stream](#Online-streaming-inference-through-microphone).\n" + "5. [online streaming inference from a microphone's stream](#Online-streaming-inference-through-microphone).\n", + "\n", + "Note the incompatibility of components could lead to failure of running this notebook locally with container, we might deprecate this notebook and provide a better tutorial in soon releases." ] }, { @@ -55,7 +57,7 @@ "The notebook requires PyAudio library to get a signal from an audio device.\n", "For Ubuntu, please run the following commands to install it:\n", "```\n", - "sudo apt-get install -y portaudio19-dev\n", + "sudo apt install python3-pyaudio\n", "pip install pyaudio\n", "```" ] @@ -64,13 +66,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This notebook requires the `torchaudio` library to be installed for MarbleNet. Please follow the instructions available at the [torchaudio Github page](https://github.com/pytorch/audio#installation) to install the appropriate version of torchaudio.\n", - "\n", - "If you would like to install the latest version, please run the following command to install it:\n", - "\n", - "```\n", - "conda install -c pytorch torchaudio\n", - "```" + "This notebook requires the `torchaudio` library to be installed for MarbleNet. Please follow the instructions available at the [torchaudio installer](https://github.com/NVIDIA/NeMo/blob/main/scripts/installers/install_torchaudio_latest.sh) and [torchaudio Github page](https://github.com/pytorch/audio#installation) to install the appropriate version of torchaudio.\n" ] }, { @@ -843,4 +839,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +} diff --git a/tutorials/asr/Online_Offline_Speech_Commands_Demo.ipynb b/tutorials/asr/Online_Offline_Speech_Commands_Demo.ipynb index a9ff324508d1..8bf717bd7b56 100644 --- a/tutorials/asr/Online_Offline_Speech_Commands_Demo.ipynb +++ b/tutorials/asr/Online_Offline_Speech_Commands_Demo.ipynb @@ -39,7 +39,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This notebook demonstrates offline and online (from a microphone's stream in NeMo) speech commands recognition " + "This notebook demonstrates offline and online (from a microphone's stream in NeMo) speech commands recognition. The incompatibility of components could lead to failure of running this notebook locally with container, we might deprecate this notebook and provide a better tutorial in soon releases." ] }, { @@ -49,7 +49,7 @@ "The notebook requires PyAudio library to get a signal from an audio device.\n", "For Ubuntu, please run the following commands to install it:\n", "```\n", - "sudo apt-get install -y portaudio19-dev\n", + "sudo apt install python3-pyaudio\n", "pip install pyaudio\n", "```" ] @@ -58,13 +58,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "This notebook requires the `torchaudio` library to be installed for MatchboxNet. Please follow the instructions available at the [torchaudio Github page](https://github.com/pytorch/audio#installation) to install the appropriate version of torchaudio.\n", - "\n", - "If you would like to install the latest version, please run the following command to install it:\n", - "\n", - "```\n", - "conda install -c pytorch torchaudio\n", - "```" + "This notebook requires the `torchaudio` library to be installed for MatchboxNet. Please follow the instructions available at the [torchaudio installer](https://github.com/NVIDIA/NeMo/blob/main/scripts/installers/install_torchaudio_latest.sh) and [torchaudio Github page](https://github.com/pytorch/audio#installation) to install the appropriate version of torchaudio.\n" ] }, { @@ -741,4 +735,4 @@ }, "nbformat": 4, "nbformat_minor": 4 -} \ No newline at end of file +}