IDinsight / ask-a-question

Trustworthy question-answering AI plugin for chatbots in the social sector with advanced content performance analysis.
https://ask-a-question.com
BSD 3-Clause "New" or "Revised" License
28 stars 4 forks source link

[128] - Add GCS functionality to Existing Speech Workflow #374

Closed MustafaAkolawala closed 3 months ago

MustafaAkolawala commented 3 months ago

Reviewer: @markbotterill Estimate: 20 mins


Ticket

Fixes: JIRA_TICKET_LINK

Description

This PR integrates Google Cloud Storage (GCS) functionality into the end-to-end speech workflow, enabling cloud-based file upload and retrieval.

Goal

the Goal of this PR is To enhance the existing speech-to-speech workflow by leveraging cloud storage, eliminating the need for local disk operations and facilitating easier file management.

Changes

How has this been tested?

How to test this?

  1. Set the appropriate GCS variables from template.core_backend.env (according to your gcs bucket name, by default we using "aaq-speech-test")
  2. Send a POST request to thestt-llm-response endpoint.
  3. Verify the Uploaded file in the GCS Bucket .
  4. If generate_tts is set to true in the QueryResponse Schema, a signed URL will be generated. Access this URL to play the generated MP3 file for text-to-speech output.

Checklist

Fill with x for completed.