LibriSpeech#
概述#
LibriSpeech 是一个大规模的语料库,包含大约 1000 小时的有声读物中的英语朗读语音。它是评估自动语音识别(ASR)系统最常用的基准之一。
任务描述#
任务类型: 自动语音识别 (ASR)
输入: 有声读物中的英语朗读录音
输出: 转录文本
语言: 英语
主要特点#
1000 小时高质量朗读语音
来自 LibriVox 有声读物(公共领域)
清晰和“其他”测试集用于不同难度
ASR 研究中广泛使用的基线
标准化的评估协议
评估说明#
支持的评估分割: test_clean 和 test_other
主要指标: 词错误率 (WER)
评估过程中应用文本规范化
提示: "请识别语音并仅输出识别内容"
元数据包括音频 ID 和持续时间信息
需要支持
input_audio内容部分的 OpenAI 兼容服务器以进行音频输入。
属性#
属性 |
值 |
|---|---|
基准测试名称 |
|
数据集ID |
|
论文 |
N/A |
标签 |
|
指标 |
|
默认样本数 |
0-shot |
评估分割 |
|
数据统计#
指标 |
值 |
|---|---|
总样本数 |
177 |
提示词长度(平均值) |
67 字符 |
提示词长度(最小/最大值) |
67 / 67 字符 |
子集统计数据:
子集 |
样本数 |
提示词平均值 |
提示词最小值 |
提示词最大值 |
|---|---|---|---|---|
|
87 |
67 |
67 |
67 |
|
90 |
67 |
67 |
67 |
音频统计数据:
指标 |
值 |
|---|---|
总音频文件数 |
177 |
每个样本的音频数量 |
最小: 1, 最大: 1, 平均: 1 |
格式 |
wav |
样例示例#
子集: test_clean
{
"input": [
{
"id": "732c90a4",
"content": [
{
"text": "Please recognize the speech and only output the recognized content:"
},
{
"audio": "[BASE64_AUDIO: wav, ~22.7MB]",
"format": "wav"
}
]
}
],
"target": "Eleven o'clock had struck it was a fine clear night they were the only persons on the road and they sauntered leisurely along to avoid paying the price of fatigue for the recreation provided for the toledans in their valley or on the banks of ... [TRUNCATED 7380 chars] ... less surprised than they and the better to assure himself of so wonderful a fact he begged leocadia to give him some token which should make perfectly clear to him that which indeed he did not doubt since it was authenticated by his parents.",
"id": 0,
"group_id": 0,
"metadata": {
"audio_id": "5639-40744",
"audio_duration": 496.6899719238281
}
}
注:部分内容因显示需要被截断。
提示模板#
提示模板:
Please recognize the speech and only output the recognized content:
使用方法#
使用 CLI#
evalscope eval \
--model YOUR_MODEL \
--api-url OPENAI_API_COMPAT_URL \
--api-key EMPTY_TOKEN \
--datasets librispeech \
--limit 10 # Remove this line for formal evaluation
使用 Python#
from evalscope import run_task
from evalscope.config import TaskConfig
task_cfg = TaskConfig(
model='YOUR_MODEL',
api_url='OPENAI_API_COMPAT_URL',
api_key='EMPTY_TOKEN',
datasets=['librispeech'],
dataset_args={
'librispeech': {
# subset_list: ['test_clean', 'test_other'] # optional, evaluate specific subsets
}
},
limit=10, # Remove this line for formal evaluation
)
run_task(task_cfg=task_cfg)