summary_audio | R Documentation |
Audio summaries can be played withing the TensorBoard UI.
summary_audio(audio, ..., metadata = NULL, tag = NA)
## S3 method for class 'array'
summary_audio(audio, ..., sample_rate = 44100, metadata = NULL, tag = NA)
## S3 method for class 'raw'
summary_audio(audio, ..., metadata = NULL, tag = NA)
## S3 method for class 'blob'
summary_audio(audio, ..., metadata = NULL, tag = NA)
audio |
Object that will be written as an audio event in the tfevents record. |
... |
Currently unused. |
metadata |
A |
tag |
A tag that within the TensorBoard UI. See |
sample_rate |
The sample rate in Hz associated to the audio values. |
An audio summary that can be logged with log_event()
.
summary_audio(array)
: Creates a summary from a 3D array with dimensions
(batch_size, n_samples, n_channels)
. Values must be in the range [-1, 1]
.
summary_audio(raw)
: Creates an audio summary from a raw vector containing
a WAV encoded audio file.
summary_audio(blob)
: Creates an audio summary from a blob (ie list of raw vectors)
containing WAV encoded audio files.
Other summary:
summary_histogram()
,
summary_image()
,
summary_scalar()
,
summary_text()
tmp <- tempfile()
with_logdir(tmp, {
summary_audio(array(runif(100), dim = c(1,100, 1)))
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.