gradio/js/audio
pngwn bb4126cc24
chore: update versions (#7338)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-09 22:15:34 -08:00
..
interactive Fix audio recording events not dispatching (#7158) 2024-01-26 18:13:27 +01:00
player chore: Change time format (#7274) 2024-02-01 13:23:19 -08:00
recorder chore: Change time format (#7274) 2024-02-01 13:23:19 -08:00
shared Fix audio recording events not dispatching (#7158) 2024-01-26 18:13:27 +01:00
static Allow download button for interactive Audio and Video components (#7104) 2024-01-23 11:33:59 +01:00
streaming Ensure device selection works in Audio when streaming (#7082) 2024-01-23 10:49:29 +01:00
Audio.stories.svelte Add mobile Chromatic tests (#7222) 2024-02-02 14:21:48 +00:00
audio.test.ts Add volume control to Audio (#6254) 2023-11-15 13:19:02 +01:00
AudioExample.stories.svelte Handle the case where examples is null for all components (#7192) 2024-01-29 16:51:22 -08:00
CHANGELOG.md chore: update versions (#7338) 2024-02-09 22:15:34 -08:00
Example.svelte Handle the case where examples is null for all components (#7192) 2024-01-29 16:51:22 -08:00
Index.svelte [WIP] Refactor file normalization to be in the backend and remove it from the frontend of each component (#7183) 2024-02-07 14:39:33 -08:00
index.ts Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00
package.json chore: update versions (#7338) 2024-02-09 22:15:34 -08:00
README.md Version 4 development branch (#5498) 2023-10-31 04:46:02 +00:00

@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 = () => {};