오디오 어노테이션
Potato에서 오디오를 구간으로 나누고 인터랙티브 파형 위에서 시간 영역에 라벨을 지정합니다. 재생 속도 조절, 확대/축소, 전사를 위한 구간별 질문을 제공합니다.
Potato의 오디오 어노테이션 도구를 사용하면 어노테이터가 파형 기반 인터페이스를 통해 오디오 파일을 구간으로 나누고 시간 영역에 라벨을 지정할 수 있습니다.
파형에 그린 구간을 도구 모음에서 레이블링합니다
기능
- 파형 시각화
- 시간 기반 구간 생성
- 구간에 대한 라벨 지정
- 가변 속도 재생 컨트롤
- 확대/축소 및 스크롤 탐색
- 키보드 단축키
- 서버 측 파형 캐싱
기본 구성
기본 모드는 어노테이터에게 영역을 표시하고 각 영역에 라벨을 지정하도록 요청하므로, 화자 분리 작업에는 라벨만 있으면 됩니다.
annotation_schemes:
- name: "speakers"
description: "Mark when each speaker is talking"
annotation_type: "audio_annotation"
labels:
- name: "Speaker 1"
color: "#3B82F6"
- name: "Speaker 2"
color: "#10B981"구성 옵션
| 필드 | 타입 | 기본값 | 설명 |
|---|---|---|---|
name | string | 필수 | 어노테이션의 고유 식별자 |
description | string | 필수 | 어노테이터에게 표시되는 지침 |
annotation_type | string | 필수 | "audio_annotation"이어야 합니다 |
mode | string | "label" | 어노테이션 모드: "label", "questions" 또는 "both" |
labels | list | 조건부 | label 또는 both 모드에 필수 |
segment_schemes | list | 조건부 | questions 또는 both 모드에 필수 |
min_segments | integer | 0 | 필요한 최소 구간 수 |
max_segments | integer | null | 허용되는 최대 구간 수 (null = 무제한) |
zoom_enabled | boolean | true | 확대/축소 컨트롤 활성화 |
playback_rate_control | boolean | false | 재생 속도 선택기 표시 |
waveform | boolean | true | 파형 표시 |
spectrogram | boolean | false | 파형 옆에 스펙트로그램 표시 |
spectrogram_options | dict | — | 스펙트로그램의 FFT 크기, 주파수 범위, 컬러 맵 |
source_field | string | "" | 항목에 오디오 파일이 둘 이상일 때 이 스키마가 어노테이션하는 디스플레이 필드 |
Potato는 모드에 필요한 입력을 빠뜨린 스키마를 로드하지 않습니다. 따라서 label과 both는 labels 없이, questions와 both는 segment_schemes 없이 실패합니다.
라벨 구성
각 라벨에 key_value를 지정하면 어노테이터가 파형을 떠나지 않고 영역에 라벨을 지정할 수 있으며, 구간이 빠르게 이어지는 화자 분리에서 이 점이 중요합니다.
labels:
- name: "speech"
color: "#3B82F6"
key_value: "1"
- name: "music"
color: "#10B981"
key_value: "2"
- name: "silence"
color: "#64748B"
key_value: "3"어노테이션 모드
라벨 모드 (기본값)
구간이 범주 라벨을 받습니다. 모든 구간이 같은 단일 선택 질문에 답할 때 이 모드를 사용하십시오.
annotation_schemes:
- name: "emotion"
description: "Label the emotion in each segment"
annotation_type: "audio_annotation"
mode: "label"
labels:
- name: "happy"
color: "#22C55E"
- name: "sad"
color: "#3B82F6"
- name: "angry"
color: "#EF4444"
- name: "neutral"
color: "#64748B"질문 모드
각 구간이 전용 질문에 답합니다. segment_schemes의 하위 스키마는 구간마다 렌더링되는 일반 어노테이션 스키마이므로, 각각 자기 유형이 요구하는 것이 필요합니다. 예를 들어 likert 척도에는 size, min_label, max_label이 있어야 합니다.
annotation_schemes:
- name: "transcription"
description: "Transcribe each segment"
annotation_type: "audio_annotation"
mode: "questions"
segment_schemes:
- name: "transcript"
annotation_type: "text"
description: "Enter the transcription"
- name: "confidence"
annotation_type: "likert"
description: "How confident are you?"
size: 5
min_label: "Not confident"
max_label: "Very confident"둘 다 모드
라벨 지정과 구간별 설문을 결합합니다. 어노테이터는 모든 영역마다 라벨 하나와 양식 하나를 처리해야 하므로, 둘 다 필요한 패스에만 사용하십시오.
annotation_schemes:
- name: "detailed_diarization"
description: "Label speakers and add notes"
annotation_type: "audio_annotation"
mode: "both"
labels:
- name: "Speaker A"
color: "#3B82F6"
- name: "Speaker B"
color: "#10B981"
segment_schemes:
- name: "notes"
annotation_type: "text"
description: "Any notes about this segment?"전역 오디오 구성
Potato는 파형 데이터를 서버에서 계산하여 캐시합니다. 브라우저가 파형을 직접 렌더링하려면 먼저 파일 전체를 내려받아 디코딩해야 하기 때문입니다. 캐시는 설정 파일에서 구성합니다.
audio_annotation:
waveform_cache_dir: "waveform_cache/"
waveform_look_ahead: 5
waveform_cache_max_size: 1000
client_fallback_max_duration: 1800| 필드 | 기본값 | 설명 |
|---|---|---|
waveform_cache_dir | — | 캐시된 파형 데이터의 디렉터리 |
waveform_look_ahead | 5 | 미리 계산할 이후 인스턴스 수 |
waveform_cache_max_size | 100 | 캐시되는 파형 파일의 최대 개수 |
client_fallback_max_duration | 1800 | 캐시된 파형이 없을 때 브라우저가 렌더링하는 가장 긴 파일의 길이(초) |
어노테이터가 서버의 사전 계산보다 빠르게 항목을 넘어가면 waveform_look_ahead를 올리고, 연구가 캐시가 담을 수 있는 것보다 많은 파일을 다룬다면 waveform_cache_max_size를 올리십시오.
예시
화자 분리
화자 분리는 재생 속도가 제 몫을 하는 곳입니다. 어노테이터는 화자가 바뀌는 지점에 경계를 놓으려고 오디오를 느리게 하고, 한 화자가 길게 이어지는 구간에서는 빠르게 돌립니다.
annotation_schemes:
- name: "diarization"
description: "Identify who is speaking at each moment"
annotation_type: "audio_annotation"
mode: "label"
labels:
- name: "Interviewer"
color: "#8B5CF6"
key_value: "1"
- name: "Guest"
color: "#EC4899"
key_value: "2"
- name: "Overlap"
color: "#F59E0B"
key_value: "3"
zoom_enabled: true
playback_rate_control: true음향 이벤트 탐지
min_segments: 1을 설정하면 어노테이터가 아무것도 표시하지 않은 녹음을 제출하지 못합니다. 모든 녹음에 이벤트가 하나 이상 있는 경우에만 사용하십시오.
annotation_schemes:
- name: "sound_events"
description: "Mark all sound events"
annotation_type: "audio_annotation"
labels:
- name: "speech"
color: "#3B82F6"
- name: "music"
color: "#10B981"
- name: "applause"
color: "#F59E0B"
- name: "laughter"
color: "#EC4899"
- name: "silence"
color: "#64748B"
min_segments: 1전사 검토
자유 텍스트 필드를 품질 평가와 짝지으면 전사를 왜 그대로 두었는지가 기록되어, 출력에서 깨끗한 구간과 알아들을 수 없는 구간이 구별됩니다.
annotation_schemes:
- name: "transcription_review"
description: "Review and correct the transcription for each segment"
annotation_type: "audio_annotation"
mode: "questions"
segment_schemes:
- name: "transcript"
annotation_type: "text"
description: "Enter or correct the transcription"
- name: "quality"
annotation_type: "radio"
description: "Audio quality"
labels:
- "Clear"
- "Noisy"
- "Unintelligible"이미 전사본이 있습니까?
위의 모든 예시는 빈 파형에서 시작하며, 어노테이터가 듣고, 경계를 표시하고, 찾은 것에 라벨을 지정합니다. Whisper나 내려받은 자막처럼 이미 존재하는 전사본에는 다른 경로가 맞습니다. Potato는 21가지 전사본 및 자막 형식을 읽고 턴을 오디오와 동기화된 화자 말풍선으로 렌더링하므로, 어노테이터는 구간을 다시 만들지 않고 기존 구간에 라벨을 지정합니다.
{"id": "int_001", "conversation": {"audio": "media/int_001.mp3",
"transcript": "media/int_001.srt"}}형식 목록은 전사본 형식을, 따라 하기 안내는 Whisper 전사본 어노테이션을 참고하십시오. 둘 다 필요하다면 파형 구간 분할과 전사본 어노테이션을 같은 작업에서 함께 실행할 수도 있습니다.
키보드 단축키
| 키 | 동작 |
|---|---|
Space | 재생/일시정지 |
← / → | 5초 탐색 |
[ / ] | 구간 시작/끝 설정 |
Enter | 구간 생성 |
Del | 구간 삭제 |
+ / - | 확대/축소 |
0 | 화면에 맞추기 |
label과 both 모드에서는 key_value가 있는 각 라벨이 자신의 키를 추가합니다.
데이터 형식
입력 데이터
데이터 파일에는 오디오 파일 경로나 URL이 포함되어야 합니다.
[
{
"id": "audio_001",
"audio_url": "https://example.com/audio/recording1.mp3"
},
{
"id": "audio_002",
"audio_url": "/data/audio/recording2.wav"
}
]text_key는 오디오 경로를 담은 필드를 가리키게 하십시오. Potato가 어노테이션 위젯에 넘기는 필드가 바로 그것이기 때문입니다.
item_properties:
id_key: id
text_key: audio_url출력 형식
{
"id": "audio_001",
"annotations": {
"diarization": [
{
"start": 0.0,
"end": 5.5,
"label": "Interviewer"
},
{
"start": 5.5,
"end": 12.3,
"label": "Guest"
},
{
"start": 12.3,
"end": 14.0,
"label": "Overlap"
}
]
}
}질문 모드에서는 구간에 중첩된 응답이 포함됩니다.
{
"start": 0.0,
"end": 5.5,
"transcript": "Hello and welcome to the show.",
"quality": "Clear"
}지원되는 오디오 형식
- MP3 (권장)
- WAV
- OGG
- M4A
모범 사례
- 파형을 미리 캐시하십시오 - 대규모 데이터셋에는 서버 측 캐싱을 사용하십시오
- 재생 컨트롤을 활성화하십시오 - 가변 속도는 정밀한 구간 분할에 도움이 됩니다
- 키보드 단축키를 사용하십시오 - 클릭보다 빠르고, 어노테이터의 시선이 파형에 머뭅니다
- 명확한 경계를 정의하십시오 - 구간의 시작과 끝을 무엇으로 볼지 명시하십시오
- 적절한 모드를 선택하십시오 - 분류에는 "label", 상세 어노테이션에는 "questions"를 사용하십시오
- 구간 한도를 설정하십시오 -
min_segments를 사용해 커버리지를 보장하십시오