gradio/js/audio
pngwn 12f81fcaed
chore: update versions (#8622)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-28 12:39:54 -04:00
..
interactive Client node fix (#8252) 2024-05-09 12:06:28 +01:00
player chatbot component tweaks (#8594) 2024-06-24 21:41:06 +00:00
recorder Prevent audio speeding up when trimming (#7599) 2024-03-05 20:10:10 +00:00
shared Hide the scroll bar in WaveformControls when it's not necessary (#8065) 2024-04-23 13:27:39 +09:00
static chatbot component tweaks (#8594) 2024-06-24 21:41:06 +00:00
streaming
Audio.stories.svelte
audio.test.ts Adds a gr.DownloadButton component (#7518) 2024-02-28 12:07:36 -08:00
AudioExample.stories.svelte
CHANGELOG.md chore: update versions (#8622) 2024-06-28 12:39:54 -04:00
Example.svelte
Index.svelte Client node fix (#8252) 2024-05-09 12:06:28 +01:00
index.ts
package.json chore: update versions (#8622) 2024-06-28 12:39:54 -04: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 = () => {};