class_docstr: Audio Plugin for TensorBoard.
class_docstr_tok: ["Audio","Plugin","for","TensorBoard","."]
docstr: Given a tag and list of runs, serve a list of metadata for audio.
  
  Note that the actual audio data are not sent; instead, we respond
  with URLs to the audio. The frontend should treat these URLs as
  opaque and should not try to parse information about them or
  generate them itself, as the format may change.
  
  Args:
    request: A werkzeug.wrappers.Request object.
  
  Returns:
    A werkzeug.Response application.
docstr_tok: ["Given","a","tag","and","list","of","runs",",","serve","a","list","of","metadata","for","audio",".","Note","that","the","actual","audio","data","are","not","sent",";","instead",",","we","respond","with","URLs","to","the","audio",".","The","frontend","should","treat","these","URLs","as","opaque","and","should","not","try","to","parse","information","about","them","or","generate","them","itself",",","as","the","format","may","change",".","Args",":","request",":","A","werkzeug.wrappers.Request","object",".","Returns",":","A","werkzeug.Response","application","."]
code: def _serve_audio_metadata(self, request):
      """Given a tag and list of runs, serve a list of metadata for audio.
  
      Note that the actual audio data are not sent; instead, we respond
      with URLs to the audio. The frontend should treat these URLs as
      opaque and should not try to parse information about them or
      generate them itself, as the format may change.
  
      Args:
        request: A werkzeug.wrappers.Request object.
  
      Returns:
        A werkzeug.Response application.
      """
      ctx = plugin_util.context(request.environ)
      experiment = plugin_util.experiment_id(request.environ)
      tag = request.args.get("tag")
      run = request.args.get("run")
      sample = int(request.args.get("sample", 0))
  
      response = self._audio_response_for_run(
          ctx, experiment, run, tag, sample
      )
      return http_util.Respond(request, response, "application/json")
  
file_path: tensorboard/tensorboard/plugins/audio/audio_plugin.py
imports: import urllib.parse
  from werkzeug import wrappers
  from tensorboard import errors
  from tensorboard import plugin_util
  from tensorboard.backend import http_util
  from tensorboard.data import provider
  from tensorboard.plugins import base_plugin
  from tensorboard.plugins.audio import metadata
label_desc: Use image node_id 6 for calling the AudioPlugin obj's underlying member method code with example usage: obj._serve_audio_metadata(request) and returns: http_util