gradio/js/audio
Gradio PR Bot b5eaba1d6d
chore: update versions (#9874)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 14:59:10 -08:00
..
interactive Fix live interfaces for audio/image streaming (#9883) 2024-11-04 16:20:48 -05:00
player 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
recorder 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
shared 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
static 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
streaming 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
Audio.stories.svelte
audio.test.ts Fix published package exports (#9163) 2024-08-22 16:38:45 +00:00
AudioExample.stories.svelte
CHANGELOG.md chore: update versions (#9874) 2024-11-04 14:59:10 -08:00
Example.svelte
Index.svelte 5.0 dev -> main (#8843) 2024-10-08 22:17:17 -07:00
index.ts
package.json chore: update versions (#9874) 2024-11-04 14:59:10 -08:00
README.md

@gradio/audio

<script>
	import { BaseStaticAudio, BaseInteractiveAudio, BasePlayer, BaseExample } from "@gradio/audio";
</script>

BaseExample:

	export let value: string;
	export let type: "gallery" | "table";
	export let selected = false;

BaseStaticAudio:

	export let value: null | { name: string; data: string } = null;
	export let label: string;
	export let name: string;
	export let show_label = true;
	export let autoplay: boolean;
	export let show_download_button = true;
	export let show_share_button = false;
	export let i18n: I18nFormatter;
	export let waveform_settings = {};

BaseInteractiveAudio:

	export let value: null | { name: string; data: string } = null;
	export let label: string;
	export let root: string;
	export let show_label = true;
	export let sources:
		| ["microphone"]
		| ["upload"]
		| ["microphone", "upload"]
		| ["upload", "microphone"] = ["microphone", "upload"];
	export let pending = false;
	export let streaming = false;
	export let autoplay = false;
	export let i18n: I18nFormatter;
	export let waveform_settings = {};
	export let dragging: boolean;
	export let active_source: "microphone" | "upload";
	export let handle_reset_value: () => void = () => {};

BasePlayer:

	export let value: null | { name: string; data: string } = null;
	export let label: string;
	export let autoplay: boolean;
	export let i18n: I18nFormatter;
	export let dispatch: (event: any, detail?: any) => void;
	export let dispatch_blob: (
		blobs: Uint8Array[] | Blob[],
		event: "stream" | "change" | "stop_recording"
	) => Promise<void> = () => Promise.resolve();
	export let interactive = false;
	export let waveform_settings = {};
	export let mode = "";
	export let handle_reset_value: () => void = () => {};