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

Fix: 대본으로 학습하기 API 연동 완료 #38

Merged
merged 3 commits into from
Feb 20, 2024

Conversation

bunju20
Copy link
Contributor

@bunju20 bunju20 commented Feb 20, 2024

🔥 Related Issues

⛅️ 작업 내용

👀 스크린샷 / GIF / 링크

1.record녹음하는 부분 lib/viewModels/script/create_script_viewmodel.dart

  Future<void> _startRecording() async {
    if (!_isRecorderInitialized || _isRecording) return;

    final directory = await getApplicationDocumentsDirectory();
    final filePath = '${directory.path}/${DateTime
        .now()
        .millisecondsSinceEpoch}.aac';

    await _audioRecorder!.startRecorder(
      toFile: filePath,
      codec: Codec.aacADTS,
    );

    _isRecording = true;
  }

startListening은 실시간으로 사용자 말을 text로 바꿔주는 애입니다.

  1. POST보내는부분lib/viewModels/script/create_script_viewmodel.dart
Future<void> sendTextAndAudio()

여기서 response받고 처리해서 넘겨줍니당.

Copy link
Member

@seochan99 seochan99 left a comment

Choose a reason for hiding this comment

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

고생했응!

@seochan99 seochan99 merged commit ba75aec into GDSC-DGU:develop Feb 20, 2024
1 check passed
@bunju20 bunju20 changed the title [ FIX ] 대본으로 학습하기 API 연동 완료 Fix: 대본으로 학습하기 API 연동 완료 Feb 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants