Skip to content
Open
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
74 changes: 2 additions & 72 deletions bun.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@clack/prompts": "^0.10.0",
"clipanion": "^4.0.0-rc.4",
"debug": "^4.4.0",
"hume": "0.14.0",
"hume": "^0.15.0",
"open": "^10.1.0",
"typanion": "^3.14.0"
},
Expand Down
3 changes: 3 additions & 0 deletions src/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import { existsSync } from 'fs';
import type { SnippetAudioChunk as SnippetAudioChunk_ } from 'hume/serialization/resources/tts/types';
import type { Hume } from 'hume';

type SnippetAudioChunk = Hume.tts.SnippetAudioChunk;

type SnippetAudioChunk = Hume.tts.SnippetAudioChunk;
type RawSnippetAudioChunk = SnippetAudioChunk_.Raw;

Expand Down Expand Up @@ -550,6 +552,7 @@ describe('CLI End-to-End Tests', () => {
audio,
audio_format: 'wav' as const,
is_last_chunk: partial.isLastChunk ?? true,
type: 'audio' as const,
utterance_index: partial.utteranceIndex ?? 0,
snippet: {
id: snippetId,
Expand Down
4 changes: 2 additions & 2 deletions src/tts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {
import type { ConfigData } from './config';
import type { Hume, HumeClient } from 'hume';
import { playAudioFile, withStdinAudioPlayer } from './play_audio';
import HumeSerialization from 'hume/serialization';
import { tts as humeSerializationTts } from 'hume/serialization';

type SynthesisOutputOpts =
| {
Expand Down Expand Up @@ -645,7 +645,7 @@ export class Tts {
const endpoint = opts.streaming ? '/v0/tts/stream/json' : '/v0/tts';
const url = `${baseUrl}${endpoint}`;

const serialized = HumeSerialization.tts.PostedTts.jsonOrThrow(tts);
const serialized = humeSerializationTts.PostedTts.jsonOrThrow(tts);

// Generate curl command with URL first
const curlCommand = [
Expand Down
Loading