docstr: Logs the audio Asset determined by audio data.
  
  Args:
  audio_data: String or a numpy array - either the file path
      of the file you want to log, or a numpy array given to
      scipy.io.wavfile.write for wav conversion.
  sample_rate: Integer - Optional. The sampling rate given to
      scipy.io.wavfile.write for creating the wav file.
  file_name: String - Optional. A custom file name to be displayed.
      If not provided, the filename from the audio_data argument
      will be used.
  metadata: Some additional data to attach to the the audio asset.
      Must be a JSON-encodable dict.
  overwrite: if True will overwrite all existing assets with the same name.
  copy_to_tmp: If audio_data is a numpy array, then this flag
      determines if the WAV file is first copied to a temporary
      file before upload. If copy_to_tmp is False, then it is sent
      directly to the cloud.
  step: Optional. Used to associate the audio asset to a specific step.
docstr_tok: ["Logs","the","audio","Asset","determined","by","audio","data",".","Args",":","audio_data",":","String","or","a","numpy","array","-","either","the","file","path","of","the","file","you","want","to","log",",","or","a","numpy","array","given","to","scipy.io.wavfile.write","for","wav","conversion",".","sample_rate",":","Integer","-","Optional",".","The","sampling","rate","given","to","scipy.io.wavfile.write","for","creating","the","wav","file",".","file_name",":","String","-","Optional",".","A","custom","file","name","to","be","displayed",".","If","not","provided",",","the","filename","from","the","audio_data","argument","will","be","used",".","metadata",":","Some","additional","data","to","attach","to","the","the","audio","asset",".","Must","be","a","JSON-encodable","dict",".","overwrite",":","if","True","will","overwrite","all","existing","assets","with","the","same","name",".","copy_to_tmp",":","If","audio_data","is","a","numpy","array",",","then","this","flag","determines","if","the","WAV","file","is","first","copied","to","a","temporary","file","before","upload",".","If","copy_to_tmp","is","False",",","then","it","is","sent","directly","to","the","cloud",".","step",":","Optional",".","Used","to","associate","the","audio","asset","to","a","specific","step","."]
code: def log_audio(
      self,
      audio_data,
      sample_rate=None,
      file_name=None,
      metadata=None,
      overwrite=False,
      copy_to_tmp=True,
      step=None,
  ):
      """Logs the audio Asset determined by audio data.
  
      Args:
      audio_data: String or a numpy array - either the file path
          of the file you want to log, or a numpy array given to
          scipy.io.wavfile.write for wav conversion.
      sample_rate: Integer - Optional. The sampling rate given to
          scipy.io.wavfile.write for creating the wav file.
      file_name: String - Optional. A custom file name to be displayed.
          If not provided, the filename from the audio_data argument
          will be used.
      metadata: Some additional data to attach to the the audio asset.
          Must be a JSON-encodable dict.
      overwrite: if True will overwrite all existing assets with the same name.
      copy_to_tmp: If audio_data is a numpy array, then this flag
          determines if the WAV file is first copied to a temporary
          file before upload. If copy_to_tmp is False, then it is sent
          directly to the cloud.
      step: Optional. Used to associate the audio asset to a specific step.
      """
      self._experiment.log_audio(
          audio_data,
          sample_rate,
          file_name,
          metadata,
          overwrite,
          copy_to_tmp,
          step,
      )
  
imports: import logging
  import json
  import functools
  from io import BytesIO
  from google.protobuf.json_format import MessageToJson
  import numpy
  from .summary import _clean_tag
label_desc: Use image node_id 7 for calling the CometLogger obj's underlying member method code with example usage: obj.log_audio(audio_data, sample_rate, file_name, metadata, overwrite, copy_to_tmp, step) without return types