class_docstr: Transcribes audio files using OpenAI's Whisper's model on your local machine.
  
  For the supported audio formats, languages, and other parameters, see the
  [Whisper API documentation](https://platform.openai.com/docs/guides/speech-to-text) and the official Whisper
  [github repo](https://github.com/openai/whisper).
class_docstr_tok: ["Transcribes","audio","files","using","OpenAI","'s","Whisper","'s","model","on","your","local","machine",".","For","the","supported","audio","formats",",","languages",",","and","other","parameters",",","see","the","[","Whisper","API","documentation","]","(","https",":","\/\/platform.openai.com\/docs\/guides\/speech-to-text",")","and","the","official","Whisper","[","github","repo","]","(","https",":","\/\/github.com\/openai\/whisper",")","."]
docstr: Serialize this component to a dictionary.
docstr_tok: ["Serialize","this","component","to","a","dictionary","."]
code: def to_dict(self) -> Dict[str, Any]:
      """
      Serialize this component to a dictionary.
      """
      return default_to_dict(
          self,
          model=self.model,
          device=str(self.device),
          whisper_params=self.whisper_params,
      )
  
file_path: haystack/haystack/components/audio/whisper_local.py
imports: from typing import List, Optional, Dict, Any, Union, Literal, get_args
  import logging
  import tempfile
  from pathlib import Path
  from haystack import component, Document, default_to_dict, ComponentError
  from haystack.dataclasses import ByteStream
  from haystack.lazy_imports import LazyImport
label_desc: Use image node_id 3 for calling the LocalWhisperTranscriber obj's underlying member method code with example usage: obj.to_dict() and returns: default_to_dict