Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions lib/pipelines.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,15 @@ export const produce = async (body) => {

const upload = createSpeakablesUploader(pathPrefix, storage)

const speakablesHash = getSpeakablesHash(speakables)
// test reducing speakables to 25 always
let reducedSpeakables
if (speakables.length >= 25) {
reducedSpeakables = speakables.slice(0,25)
} else {
reducedSpeakables = speakables
}

const speakablesHash = getSpeakablesHash(reducedSpeakables)
debug('speakablesHash', speakablesHash)

const concat = createTransloaditConcat({
Expand All @@ -85,7 +93,7 @@ export const produce = async (body) => {
webhookUrl,
})

await synthesize(speakables)
await synthesize(reducedSpeakables)
.then(upload)
.then(concat)
.catch((e) => {
Expand Down
1 change: 1 addition & 0 deletions lib/transloadit.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export const createTransloaditConcat = (fields) => {
bitrate: 48000,
sample_rate: 24000,
use,
ffmpeg_stack: "v5.0.0",
},
},
...(PUBLIC_URL && { notify_url: `${PUBLIC_URL}/webhook/transloadit` }),
Expand Down