async sendAudioToGCP()

in ChatbotUI/src/app/components/main/chat/chatbar/chatbar.component.ts [136:145]


  async sendAudioToGCP() {
    const audioBlob = new Blob(this.audioChunks);
    (await this.speechToTextService.transcribeAudio(audioBlob)).subscribe(
      (response: any) => {
        this.chatQuery = response[0]
      },
      (error: any) => {
      }
    );
  }