Open
Conversation
e18906d to
506d1a7
Compare
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
506d1a7 to
59f5bb0
Compare
| USE bella_asr; | ||
|
|
||
| -- 步骤1: 创建 queue_sharding 表 | ||
| CREATE TABLE IF NOT EXISTS `queue_sharding` |
Collaborator
There was a problem hiding this comment.
整个数据模型和代码直接用现在bella-queue的一套就行。不用重新设计数据模型。整个流程:在bella-queue注册queue, 用户投递任务到queue,对应的asr拉取任务执行,完毕后结果回调到queue。现在整套体系支持这个流程,我理解下边的数据模型、代码,是不是没必要有,直接用现成的就行?
Author
There was a problem hiding this comment.
其实可以不用实现这一套,直接数据都存到 queue 里就行,queue 定期做一下 asr 数据持久化就可以;最开始单独开一个仓库实现一遍想的是为 asr 做单独的链路扭转服务,asr 的数据也需要单独存一份周期也可能比较久,而且 queue 作为队列服务定位上不应该支持像 asr 这样的存储;但是实现了一版后朱哥说可以迁移到 queue 仓库里复用分表逻辑,所以现在的实现是接口逻辑是 asr 的接口,但是底层分表逻辑用的 queue 逻辑,表现会有点含糊,感觉可以讨论下直接全部复用还是部分拆离
Collaborator
There was a problem hiding this comment.
是的,这里边我们唯一需要解决的就是数据长时间存储的问题。其他的我感觉就是queue现存的能力。把asr作为模型worker就可以,下周一起讨论下吧。
| * @return 转写响应(包含task_id) | ||
| */ | ||
| @PostMapping("/transcriptions/file") | ||
| public AudioTranscriptionResponse createTranscription( |
Collaborator
There was a problem hiding this comment.
直接用现在的QueueController.put接口就行
| * @return 任务结果列表 | ||
| */ | ||
| @PostMapping("/transcriptions/file/result") | ||
| public List<Map<String, Object>> queryTranscriptions( |
Collaborator
There was a problem hiding this comment.
直接用现在的QueueController.queryTask接口就行吧
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
功能概述
实现了 ASR(语音转文字)模块的完整功能
主要内容
1. 核心服务
2. 数据库分片
3. REST API
文件统计