evolution-api/prisma/migrations
Davidson Gomes 67409e1bf5 Add speech-to-text functionality using OpenAI
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.
2024-08-01 17:15:20 -03:00
..
20240609181238_init docker 2024-06-09 21:54:10 -03:00
20240610144159_create_column_profile_name_instance fix: instances 2024-06-10 11:52:19 -03:00
20240611125754_create_columns_whitelabel_chatwoot feat: Organization configuration and logo in chatwoot bot contact 2024-06-11 10:09:04 -03:00
20240611202817_create_columns_debounce_time_typebot feat: Added debounce time for typebot messages 2024-06-11 17:56:20 -03:00
20240712144948_add_business_id_column_to_instances chore: Add businessId to Instance model 2024-07-12 11:52:29 -03:00
20240712150256_create_templates_table Add support for managing WhatsApp templates via official API 2024-07-12 12:32:44 -03:00
20240712155950_adjusts_in_templates_table Fix: Resolve issue with template association in Instance model 2024-07-12 13:01:17 -03:00
20240712162206_remove_templates_table Remove template model and related functionality (prisma/postgresql-schema.prisma, src/api/services/template.service.ts) 2024-07-12 13:25:59 -03:00
20240712223655_column_fallback_typebot feat: Fixes and implementation of regex and fallback in typebot 2024-07-12 20:03:53 -03:00
20240712230631_column_ignore_jids_typebot chore: Ignore specific JIDs in Typebot integration 2024-07-12 20:14:57 -03:00
20240713184337_add_media_table chore: Integration with MinIO and S3 2024-07-13 16:07:16 -03:00
20240718121437_add_openai_tables chore: Crud openai complete 2024-07-18 10:14:53 -03:00
20240718123923_adjusts_openai_tables chore: Crud openai complete 2024-07-18 10:14:53 -03:00
20240722173259_add_name_column_to_openai_creds chore: equations and adjustments for the new manager 2024-07-23 12:34:58 -03:00
20240722173518_add_name_column_to_openai_creds chore: equations and adjustments for the new manager 2024-07-23 12:34:58 -03:00
20240723152648_adjusts_in_column_openai_creds chore: equations and adjustments for the new manager 2024-07-23 12:34:58 -03:00
20240723200254_add_webhookurl_on_message chore: Add webhookUrl to Message model, DTOs, and services 2024-07-23 17:13:37 -03:00
20240725184147_create_template_table feat: Sending template approval status webhook 2024-07-25 19:38:34 -03:00
20240725202651_add_webhook_url_template_table feat: Sending template approval status webhook 2024-07-25 19:38:34 -03:00
20240725221646_modify_token_instance_table feat: Sending template approval status webhook 2024-07-25 19:38:34 -03:00
20240729115127_modify_trigger_type_openai_typebot_table chore: adjust TriggerType for OpenAI and Typebot integrations 2024-07-29 08:53:15 -03:00
20240729180347_modify_typebot_session_status_openai_typebot_table fix: adjusts for new manager 2024-07-29 15:09:40 -03:00
20240730152156_create_dify_tables feat: Introduce dify tables with related migrations 2024-07-30 12:22:39 -03:00
20240801193907_add_column_speech_to_text_openai_setting_table Add speech-to-text functionality using OpenAI 2024-08-01 17:15:20 -03:00
migration_lock.toml docker 2024-06-09 21:54:10 -03:00