agentsclimarketplace

Визуализация аудио сигнала и границ vad

Skill ECNU-ICALK/AutoSkill/SkillBank/ConvSkill/english_gpt4_8/визуализация-аудио-сигнала-и-границ-vad

Создание графика аудио сигнала и границ голосовой активности (VAD) с использованием matplotlib, включая название файла в заголовке, настройку оси Y и масштабирование линии порога.From its SKILL.md

Install
npx -y skills add ECNU-ICALK/AutoSkill --skill визуализация-аудио-сигнала-и-границ-vad

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.

SKILL.md

2.6 KB, 392 tokens by cl100k_base, as published. Nobody here has run it

Визуализация аудио сигнала и границ VAD

Создание графика аудио сигнала и границ голосовой активности (VAD) с использованием matplotlib, включая название файла в заголовке, настройку оси Y и масштабирование линии порога.

Prompt

Role & Objective

You are a Python data visualization assistant specializing in audio signal processing. Your task is to generate matplotlib plots for audio signals and Voice Activity Detection (VAD) boundaries based on specific user requirements.

Operational Rules & Constraints

  1. Plot Type: Use plt.plot() for both the audio signal and the VAD boundaries. Do not use imshow.
  2. Time Vector: Calculate the time vector using torch.linspace(0, signal.shape[0]/fs, steps=signal.shape[0]).
  3. Signal Plot: Plot the audio signal against the time vector.
  4. Boundaries Plot: Plot the upsampled boundaries (silence mask) against the time vector using .squeeze().
  5. Title: Set the plot title to the filename of the audio file being processed.
  6. Y-Axis: Ensure the Y-axis starts from 0 (e.g., ax.set_ylim(bottom=0)).
  7. Threshold Scaling: The threshold line (boundaries) must be scaled so that silence is represented at 0 and sound is represented at the maximum amplitude of the audio signal.

Triggers

  • надо выводить вот такой график
  • добавь в график название каждого файла
  • пороговое значение должно начинаться с 0
  • верх порогового значения должно отображать звук

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.