mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-09 09:59:40 -06:00
This commit introduces a new feature that transcribes audio messages to text using OpenAI's Whisper model. The following files were modified to implement this feature: - `CHANGELOG.md`: Added a new entry under the 'Features' section to document the speech-to-text functionality. - `prisma/postgresql-schema.prisma`: Added a new boolean field `speechToText` to the `OpenaiSetting` model. - `src/api/integrations/openai/dto/openai.dto.ts`: Added a new optional boolean property `speechToText` to the `OpenaiSettingDto` class. - `src/api/integrations/openai/services/openai.service.ts`: Implemented the `speechToText` method to handle the transcription process. - `src/api/integrations/openai/validate/openai.schema.ts`: Added a new required boolean schema for the `speechToText` property in the `openaiSettingSchema`. - `src/api/integrations/typebot/services/typebot.service.ts`: Updated the `audioMessage` property to consider the new `speechToText` field. - `src/api/services/channels/whatsapp.baileys.service.ts` and `src/api/services/channels/whatsapp.business.service.ts`: Added logic to handle the transcription of audio messages when the `speechToText` setting is enabled. The purpose of this change is to provide a more accessible way for users to interact with audio messages by converting them to text. This improvement will be particularly useful for users with hearing impairments or those in noisy environments. |
||
|---|---|---|
| .. | ||
| 20240609181238_init | ||
| 20240610144159_create_column_profile_name_instance | ||
| 20240611125754_create_columns_whitelabel_chatwoot | ||
| 20240611202817_create_columns_debounce_time_typebot | ||
| 20240712144948_add_business_id_column_to_instances | ||
| 20240712150256_create_templates_table | ||
| 20240712155950_adjusts_in_templates_table | ||
| 20240712162206_remove_templates_table | ||
| 20240712223655_column_fallback_typebot | ||
| 20240712230631_column_ignore_jids_typebot | ||
| 20240713184337_add_media_table | ||
| 20240718121437_add_openai_tables | ||
| 20240718123923_adjusts_openai_tables | ||
| 20240722173259_add_name_column_to_openai_creds | ||
| 20240722173518_add_name_column_to_openai_creds | ||
| 20240723152648_adjusts_in_column_openai_creds | ||
| 20240723200254_add_webhookurl_on_message | ||
| 20240725184147_create_template_table | ||
| 20240725202651_add_webhook_url_template_table | ||
| 20240725221646_modify_token_instance_table | ||
| 20240729115127_modify_trigger_type_openai_typebot_table | ||
| 20240729180347_modify_typebot_session_status_openai_typebot_table | ||
| 20240730152156_create_dify_tables | ||
| 20240801193907_add_column_speech_to_text_openai_setting_table | ||
| migration_lock.toml | ||