mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-23 21:00:32 +03:00
9b8fee3d8f
* Add tts UI * Add tts backend * Add description to eleven labs credentials * Fix issue with fetching eleven labs voices * Fix issue with text to speech tab not showing correct saved voice * Add option to autoplay tts audio after prediction completes * Fix crash issue when first changing tts provider * Set up streaming response for text to speech audio * Update controllers - fix issue with sse client getting removed before tts events are sent * Use existing sse streamer to stream tts audio before sse client is removed * Add tts sse to redis publisher * Fix issues with TTS - openai voices, streaming audio, rate limiting, speed of speech * Refactor * Refactor TTS - fix issues with tts loading and stop audio buttons * Abort TTS SSE when clicking the stop button * Update SSE handling for TTS * Fix issue with test voice feature * Fix issue with tts voices not loading * Update generate tts endpoint and its usage in internal chat * Whitelist tts generate endpoint * Refactor Text-to-Speech Provider Selection and Enhance UI Components - Updated the text-to-speech controller to select the active provider based on status instead of the first available provider - Added audio waveform controls and test audio functionality in the TextToSpeech component, allowing users to play and pause test audio - Integrated Autocomplete for voice selection in the TextToSpeech component - Implemented TTS action management in ChatMessage to prevent auto-scrolling during TTS actions * - Implemented stopAllTTS function calls to halt existing TTS audio before playing new audio or starting a new TTS stream * Updated the condition for enabling TTS providers to exclude the 'none' provider, ensuring only valid providers are considered for text-to-speech functionality. * Remove unnecessary code * Add ability to abort audio streaming in TTS and release lock on chat input * Remove logger * Fix tts audio not playing when clicking speaker button * update * TTS abort controller * Fix abort not working for TTS autoplay * Send metadata event when aborting autoplay TTS * Fix UI issue * Remove elevenlabs sdk from root package.json * Remove redundant condition for tts autoplay in chatflow --------- Co-authored-by: Henry <hzj94@hotmail.com>
109 lines
6.8 KiB
TypeScript
109 lines
6.8 KiB
TypeScript
import { Init1693891895163 } from './1693891895163-Init'
|
|
import { ModifyChatFlow1693995626941 } from './1693995626941-ModifyChatFlow'
|
|
import { ModifyChatMessage1693996694528 } from './1693996694528-ModifyChatMessage'
|
|
import { ModifyCredential1693997070000 } from './1693997070000-ModifyCredential'
|
|
import { ModifyTool1693997339912 } from './1693997339912-ModifyTool'
|
|
import { AddApiConfig1694099183389 } from './1694099183389-AddApiConfig'
|
|
import { AddAnalytic1694432361423 } from './1694432361423-AddAnalytic'
|
|
import { AddChatHistory1694658756136 } from './1694658756136-AddChatHistory'
|
|
import { AddAssistantEntity1699325775451 } from './1699325775451-AddAssistantEntity'
|
|
import { AddUsedToolsToChatMessage1699481607341 } from './1699481607341-AddUsedToolsToChatMessage'
|
|
import { AddCategoryToChatFlow1699900910291 } from './1699900910291-AddCategoryToChatFlow'
|
|
import { AddFileAnnotationsToChatMessage1700271021237 } from './1700271021237-AddFileAnnotationsToChatMessage'
|
|
import { AddFileUploadsToChatMessage1701788586491 } from './1701788586491-AddFileUploadsToChatMessage'
|
|
import { AddVariableEntity1699325775451 } from './1702200925471-AddVariableEntity'
|
|
import { AddSpeechToText1706364937060 } from './1706364937060-AddSpeechToText'
|
|
import { AddFeedback1707213601923 } from './1707213601923-AddFeedback'
|
|
import { AddUpsertHistoryEntity1709814301358 } from './1709814301358-AddUpsertHistoryEntity'
|
|
import { FieldTypes1710497452584 } from './1710497452584-FieldTypes'
|
|
import { AddLead1710832137905 } from './1710832137905-AddLead'
|
|
import { AddLeadToChatMessage1711538016098 } from './1711538016098-AddLeadToChatMessage'
|
|
import { AddDocumentStore1711637331047 } from './1711637331047-AddDocumentStore'
|
|
import { AddEvaluation1714548873039 } from './1714548873039-AddEvaluation'
|
|
import { AddDatasets1714548903384 } from './1714548903384-AddDataset'
|
|
import { AddAgentReasoningToChatMessage1714679514451 } from './1714679514451-AddAgentReasoningToChatMessage'
|
|
import { AddEvaluator1714808591644 } from './1714808591644-AddEvaluator'
|
|
import { AddVectorStoreConfigToDocStore1715861032479 } from './1715861032479-AddVectorStoreConfigToDocStore'
|
|
import { AddTypeToChatFlow1716300000000 } from './1716300000000-AddTypeToChatFlow'
|
|
import { AddApiKey1720230151480 } from './1720230151480-AddApiKey'
|
|
import { AddActionToChatMessage1721078251523 } from './1721078251523-AddActionToChatMessage'
|
|
import { AddCustomTemplate1725629836652 } from './1725629836652-AddCustomTemplate'
|
|
import { AddArtifactsToChatMessage1726156258465 } from './1726156258465-AddArtifactsToChatMessage'
|
|
import { AddFollowUpPrompts1726666309552 } from './1726666309552-AddFollowUpPrompts'
|
|
import { AddTypeToAssistant1733011290987 } from './1733011290987-AddTypeToAssistant'
|
|
import { AddSeqNoToDatasetRow1733752119696 } from './1733752119696-AddSeqNoToDatasetRow'
|
|
import { AddExecutionEntity1738090872625 } from './1738090872625-AddExecutionEntity'
|
|
import { FixOpenSourceAssistantTable1743758056188 } from './1743758056188-FixOpenSourceAssistantTable'
|
|
import { AddErrorToEvaluationRun1744964560174 } from './1744964560174-AddErrorToEvaluationRun'
|
|
import { ModifyExecutionSessionIdFieldType1748450230238 } from './1748450230238-ModifyExecutionSessionIdFieldType'
|
|
import { AddTextToSpeechToChatFlow1754986480347 } from './1754986480347-AddTextToSpeechToChatFlow'
|
|
import { ModifyChatflowType1755066758601 } from './1755066758601-ModifyChatflowType'
|
|
import { AddChatFlowNameIndex1755748356008 } from './1755748356008-AddChatFlowNameIndex'
|
|
|
|
import { AddAuthTables1720230151482 } from '../../../enterprise/database/migrations/postgres/1720230151482-AddAuthTables'
|
|
import { AddWorkspace1720230151484 } from '../../../enterprise/database/migrations/postgres/1720230151484-AddWorkspace'
|
|
import { AddWorkspaceShared1726654922034 } from '../../../enterprise/database/migrations/postgres/1726654922034-AddWorkspaceShared'
|
|
import { AddWorkspaceIdToCustomTemplate1726655750383 } from '../../../enterprise/database/migrations/postgres/1726655750383-AddWorkspaceIdToCustomTemplate'
|
|
import { AddOrganization1727798417345 } from '../../../enterprise/database/migrations/postgres/1727798417345-AddOrganization'
|
|
import { LinkWorkspaceId1729130948686 } from '../../../enterprise/database/migrations/postgres/1729130948686-LinkWorkspaceId'
|
|
import { LinkOrganizationId1729133111652 } from '../../../enterprise/database/migrations/postgres/1729133111652-LinkOrganizationId'
|
|
import { AddSSOColumns1730519457880 } from '../../../enterprise/database/migrations/postgres/1730519457880-AddSSOColumns'
|
|
import { AddPersonalWorkspace1734074497540 } from '../../../enterprise/database/migrations/postgres/1734074497540-AddPersonalWorkspace'
|
|
import { RefactorEnterpriseDatabase1737076223692 } from '../../../enterprise/database/migrations/postgres/1737076223692-RefactorEnterpriseDatabase'
|
|
import { ExecutionLinkWorkspaceId1746862866554 } from '../../../enterprise/database/migrations/postgres/1746862866554-ExecutionLinkWorkspaceId'
|
|
|
|
export const postgresMigrations = [
|
|
Init1693891895163,
|
|
ModifyChatFlow1693995626941,
|
|
ModifyChatMessage1693996694528,
|
|
ModifyCredential1693997070000,
|
|
ModifyTool1693997339912,
|
|
AddApiConfig1694099183389,
|
|
AddAnalytic1694432361423,
|
|
AddChatHistory1694658756136,
|
|
AddAssistantEntity1699325775451,
|
|
AddUsedToolsToChatMessage1699481607341,
|
|
AddCategoryToChatFlow1699900910291,
|
|
AddFileAnnotationsToChatMessage1700271021237,
|
|
AddVariableEntity1699325775451,
|
|
AddFileUploadsToChatMessage1701788586491,
|
|
AddSpeechToText1706364937060,
|
|
AddUpsertHistoryEntity1709814301358,
|
|
AddFeedback1707213601923,
|
|
FieldTypes1710497452584,
|
|
AddEvaluation1714548873039,
|
|
AddDatasets1714548903384,
|
|
AddEvaluator1714808591644,
|
|
AddDocumentStore1711637331047,
|
|
AddLead1710832137905,
|
|
AddLeadToChatMessage1711538016098,
|
|
AddAgentReasoningToChatMessage1714679514451,
|
|
AddVectorStoreConfigToDocStore1715861032479,
|
|
AddTypeToChatFlow1716300000000,
|
|
AddApiKey1720230151480,
|
|
AddActionToChatMessage1721078251523,
|
|
AddCustomTemplate1725629836652,
|
|
AddArtifactsToChatMessage1726156258465,
|
|
AddFollowUpPrompts1726666309552,
|
|
AddTypeToAssistant1733011290987,
|
|
AddAuthTables1720230151482,
|
|
AddWorkspace1720230151484,
|
|
AddWorkspaceShared1726654922034,
|
|
AddWorkspaceIdToCustomTemplate1726655750383,
|
|
AddOrganization1727798417345,
|
|
LinkWorkspaceId1729130948686,
|
|
LinkOrganizationId1729133111652,
|
|
AddSSOColumns1730519457880,
|
|
AddSeqNoToDatasetRow1733752119696,
|
|
AddPersonalWorkspace1734074497540,
|
|
RefactorEnterpriseDatabase1737076223692,
|
|
AddExecutionEntity1738090872625,
|
|
FixOpenSourceAssistantTable1743758056188,
|
|
AddErrorToEvaluationRun1744964560174,
|
|
ExecutionLinkWorkspaceId1746862866554,
|
|
ModifyExecutionSessionIdFieldType1748450230238,
|
|
AddTextToSpeechToChatFlow1754986480347,
|
|
ModifyChatflowType1755066758601,
|
|
AddChatFlowNameIndex1755748356008
|
|
]
|