Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This pull request introduces support for the Deepgram SDK in both the STT (Speech-to-Text) and TTS (Text-to-Speech) services. The changes include adding new provider strategies, updating schemas, and modifying request handling to incorporate the Deepgram SDK.
Key Changes:
STTService Enhancements:
api/server/services/Files/Audio/STTService.js
).sdkStrategies
for Deepgram in theSTTService
constructor (api/server/services/Files/Audio/STTService.js
).deepgramSDKProvider
method for transcribing audio using Deepgram SDK (api/server/services/Files/Audio/STTService.js
).sttRequest
method to determine and use the appropriate strategy, including SDK support (api/server/services/Files/Audio/STTService.js
).TTSService Enhancements:
api/server/services/Files/Audio/TTSService.js
).sdkStrategies
for Deepgram in theTTSService
constructor (api/server/services/Files/Audio/TTSService.js
).deepgramSDKProvider
method for generating speech using Deepgram SDK (api/server/services/Files/Audio/TTSService.js
).ttsRequest
method to determine and use the appropriate strategy, including SDK support (api/server/services/Files/Audio/TTSService.js
).Schema and Configuration Updates:
config.ts
(packages/data-provider/src/config.ts
). [1] [2]STTProviders
andTTSProviders
enums to include Deepgram (packages/data-provider/src/config.ts
). [1] [2]Miscellaneous:
package.json
(package.json
).getVoices
function to handle Deepgram TTS provider (api/server/services/Files/Audio/getVoices.js
).HoverButtons.tsx
,MessageAudio.tsx
,useTTSBrowser.ts
,useTTSEdge.ts
, anduseTTSExternal.ts
(client/src/components/Chat/Messages/HoverButtons.tsx
,client/src/components/Chat/Messages/MessageAudio.tsx
,client/src/hooks/Audio/useTTSBrowser.ts
,client/src/hooks/Audio/useTTSEdge.ts
,client/src/hooks/Audio/useTTSExternal.ts
). [1] [2] [3] [4] [5]Change Type
Checklist