Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use ffmpeg read data #1349

Merged
merged 4 commits into from
Feb 2, 2024
Merged

Use ffmpeg read data #1349

merged 4 commits into from
Feb 2, 2024

Conversation

yeyupiaoling
Copy link
Collaborator

修改为使用ffmpeg读取音频数据,以支持更多格式的音频数据。
返回数据增加sentences字段,即每句话的开始时间和结束时间。

返回结果如下:

{
    "text": "近几年不但我用书给女儿压岁,也劝说亲朋不要给女儿压岁钱,而改送压岁书。",
    "sentences": [
        {
            "text": "近几年不但我用书给女儿压岁,",
            "start": 710,
            "end": 710
        },
        {
            "text": "也劝说亲朋不要给女儿压岁钱,",
            "start": 3330,
            "end": 3330
        },
        {
            "text": "而改送压岁书。",
            "start": 5990,
            "end": 5990
        }
    ],
    "code": 0
}

@LauraGPT LauraGPT merged commit c2f174c into modelscope:main Feb 2, 2024
1 of 3 checks passed
@yeyupiaoling yeyupiaoling deleted the update_http branch February 3, 2024 01:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants