Skip to content
Merged
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
4 changes: 2 additions & 2 deletions skills/popost/SOURCE-MANIFEST.sha256
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ a303b540d49c5a5e1606a70235c519c83bc2c6fb95d9e5330283d82d50211514 src/video/repl
5c8062fe4e42418ebd1c15bb82c84cd79381ee3e9060ef70772f0e72c44c3f7d src/video/replication/schema.ts
d235668c0102c7d3f23a6d076731fb636c25888f80936942fac5f8d1376c2def src/video/replication/source-clock.ts
c240044a00bb61e56fc4f1de1898c161bd7ca2d1db4b7bdcf563449f3344394d src/video/replication/speech-observed.ts
b33c51626f47c643b7d2ae27cbf584547f999e9eedcbecb1c56f7e762336fc8f src/video/replication/voice-spans.ts
1e63b5e29eb3995b5615ed9a1d03687da94537c4d775d5a9ec513fd2bc1a6f79 src/video/replication/voice-spans.ts
7770053a5b2185cfb939f25b34c943eaa7e4e1a2c6a99ef89c7f77b817757990 src/video/retarget/caption-look.ts
77f068afeb4e32c93d6f0c235159c007938f42a5041d180dae378895dd77e0f3 src/video/retarget/fps.ts
3f200d0b79a0e6ff7562b59fa15425a662dedbffd74a74f66d86dd80b16e7b52 src/video/retarget/index.ts
Expand Down Expand Up @@ -2299,7 +2299,7 @@ b95a227b6272acc2aa7bc820874fc89b1393f36d29ee63782099366db364e2bb tests/video/re
ef2b2aca241e1384d00bd304cd23265029f3e2499514dc0e16d3d8cd8ef23e68 tests/video/replication-prefill.test.ts
ed293724ef1cc98fa5d630b3a56222a6e7bc224a71fa587956e544fd98b676bb tests/video/replication-production.test.ts
d867f0f0c577f0d76d6d1c3bb20fb170d78f80b996772b2a0bbdda78d4a63358 tests/video/replication-schema.test.ts
846d1661079b70b2ef0d3bef97a1fec23a55bf6d70207fd848b50c6cfaf77e21 tests/video/replication-voice-spans.test.ts
9557861d9dfb639cfa531f0f021068aeb66c99d78c0fade3930883a1f6b2548a tests/video/replication-voice-spans.test.ts
da89b6081daa8ba55590f6e6c849a218d7cddd2c2ef26d48d20c9c0d9c845053 tests/video/retarget-words.test.ts
20d39b9c29393e2cc6e691fdd73b2d1395c76adcd6cebd5356b801ac1ab7ad88 tests/video/scene-catalogue.test.ts
2e9824b3ec19ce04114bdec39330145620613f1a88b7ca34665e5def71d3ec5e tests/video/scene-examples.test.ts
Expand Down
4 changes: 2 additions & 2 deletions skills/popost/src/video/replication/voice-spans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import type { Problem, Project, Resolved } from '../types';
import { error } from '../project/check-common';

export const voiceSpanProblems = (project: Pick<Project, 'tracks'>, resolved: Pick<Resolved, 'audio' | 'frames'>): Problem[] => {
export const voiceSpanProblems = (project: Partial<Pick<Project, 'tracks'>>, resolved: Pick<Resolved, 'audio' | 'frames'>): Problem[] => {
const problems: Problem[] = [];
for (const track of project.tracks) {
for (const track of project.tracks ?? []) {
if (track.type !== 'audio' || track.role !== 'voice') continue;
const route = resolved.audio.find(a => a.id === track.id);
const at = 'tracks.' + track.id + '.lines';
Expand Down
3 changes: 3 additions & 0 deletions skills/popost/tests/video/replication-voice-spans.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ const resolved = (start = 90, end: number | undefined = 110): Pick<Resolved, 'au
audio: [{ id: 'speaker', src: 'assets/voice.wav', start, ...(end === undefined ? {} : { end }), gain: 0 }],
});
describe('strict voice intervals on a displaced audio track', () => {
it('treats an omitted tracks list as empty, matching the project schema', () => {
expect(voiceSpanProblems({}, resolved())).toEqual([]);
});
it('rejects global timeline coordinates that would silently remove the declared speech', () => {
const found = voiceSpanProblems({ tracks: [track([[90, 110]])] }, resolved());
expect(found).toHaveLength(1);
Expand Down
Loading