-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide the waveform when playing recorded audio if show_recording_waveform
is False
#10405
Changes from 11 commits
47922de
1582fe4
5122ffc
3d4799a
14d0b94
9ab7076
008455f
00f3622
16770c2
c890ce8
e76e5a2
057626a
4f99540
4ed9161
3c365c5
2652006
1dcf118
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@gradio/audio": patch | ||
"@gradio/chatbot": patch | ||
"@gradio/multimodaltextbox": patch | ||
"gradio": patch | ||
--- | ||
|
||
fix:Hide the waveform when playing recorded audio if `show_recording_waveform` is `False` |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,10 @@ | |
export let show_download_button: boolean; | ||
export let show_share_button = false; | ||
export let editable = true; | ||
export let waveform_options: WaveformOptions = {}; | ||
export let waveform_options: WaveformOptions = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added to preserve behavior for unit tests |
||
show_recording_waveform: true, | ||
show_controls: false | ||
}; | ||
export let pending: boolean; | ||
export let streaming: boolean; | ||
export let stream_every: number; | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -195,6 +195,10 @@ | |
border: 1px solid var(--block-border-color); | ||
} | ||
|
||
.duration-button { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
border-radius: var(--button-large-radius); | ||
} | ||
|
||
.stop-button:disabled { | ||
cursor: not-allowed; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,7 +54,10 @@ | |
export let file_count: "single" | "multiple" | "directory" = "multiple"; | ||
export let max_plain_text_length = 1000; | ||
export let waveform_settings: Record<string, any>; | ||
export let waveform_options: WaveformOptions = {}; | ||
export let waveform_options: WaveformOptions = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should add |
||
show_recording_waveform: true, | ||
show_controls: false | ||
}; | ||
export let sources: ["microphone" | "upload"] = ["upload"]; | ||
export let active_source: "microphone" | null = null; | ||
let upload_component: Upload; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is the most sensible way to handle the case when
show_recording_waveform=False
without adding a new parameter.