Skip to content

Feature(#79): 클로바 API를 사용하여 음성을 글로 추출하고 자막으로 DB에 저장한다. #214

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

Merged
merged 4 commits into from
Dec 7, 2023

Conversation

tmddus2
Copy link
Collaborator

@tmddus2 tmddus2 commented Dec 6, 2023

작업 개요

close #79 클로바 API를 사용하여 음성을 글로 추출하고 자막으로 DB에 저장한다.

작업 사항

CLOVA Speech 장문인식 API를 활용하여 미디어파일에서 음성을 텍스트로 추출했습니다. callback url로 API 결과가 리턴되면 이를 가공하여 DB에 저장합니다. DB에는 자막 문장별로 발화시간문장내용 형식으로 저장합니다.

자막을 나타내기 위한 interface를 다음과 같이 정의하였습니다.

export interface Subtitle {
  start: string;
  text: string;
}

DB에는 다음과 같은 형태로 저장됩니다.

[   
    {"start": "20770", "text": "비슷한 사고가 4차례나 더 있었습니다. 앞서 시범 경기 기간에도 파월 공으로 인한 차량 파손 사고가 30여 차례나 발생했습니다."}, 
    {"start": "32930", "text": "당초 이 야구장은 생활체육인을 위한 시설로 설계됐다가 전국 체전을 앞두고 공인규격 야구장으로 바뀌었습니다."}, 
]

Copy link

netlify bot commented Dec 6, 2023

Deploy Preview for boarlog failed.

Name Link
🔨 Latest commit ef0e08c
🔍 Latest deploy log https://app.netlify.com/sites/boarlog/deploys/6570af1a2529d00008771f42

@tmddus2 tmddus2 requested a review from platinouss December 6, 2023 17:30
@tmddus2 tmddus2 self-assigned this Dec 6, 2023
@tmddus2 tmddus2 added BE 백엔드 작업 ✨ Feat 기능 개발 labels Dec 6, 2023
@tmddus2 tmddus2 added this to the 5주차 milestone Dec 6, 2023
Copy link
Member

@platinouss platinouss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 !

@platinouss platinouss merged commit 72cee94 into boostcampwm2023:dev Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BE 백엔드 작업 ✨ Feat 기능 개발
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: 클로바 API를 사용하여 음성을 글로 추출하고 자막으로 DB에 저장한다.
2 participants