class_docstr: TODO: Add voice conversion and Capacitron support.
docstr: Convert text to speech with voice conversion and save to file.
  
  Check `tts_with_vc` for more details.
  
  Args:
      text (str):
          Input text to synthesize.
      language (str, optional):
          Language code for multi-lingual models. You can check whether loaded model is multi-lingual
          `tts.is_multi_lingual` and list available languages by `tts.languages`. Defaults to None.
      speaker_wav (str, optional):
          Path to a reference wav file to use for voice cloning with supporting models like YourTTS.
          Defaults to None.
      file_path (str, optional):
          Output file path. Defaults to "output.wav".
      speaker (str, optional):
          Speaker name for multi-speaker. You can check whether loaded model is multi-speaker by
          `tts.is_multi_speaker` and list speakers by `tts.speakers`. Defaults to None.
      split_sentences (bool, optional):
          Split text into sentences, synthesize them separately and concatenate the file audio.
          Setting it False uses more VRAM and possibly hit model specific text length or VRAM limits. Only
          applicable to the 🐸TTS models. Defaults to True.
docstr_tok: ["Convert","text","to","speech","with","voice","conversion","and","save","to","file",".","Check","`","tts_with_vc","`","for","more","details",".","Args",":","text","(","str",")",":","Input","text","to","synthesize",".","language","(","str",",","optional",")",":","Language","code","for","multi-lingual","models",".","You","can","check","whether","loaded","model","is","multi-lingual","`","tts.is_multi_lingual","`","and","list","available","languages","by","`","tts.languages","`",".","Defaults","to","None",".","speaker_wav","(","str",",","optional",")",":","Path","to","a","reference","wav","file","to","use","for","voice","cloning","with","supporting","models","like","YourTTS",".","Defaults","to","None",".","file_path","(","str",",","optional",")",":","Output","file","path",".","Defaults","to","``","output.wav","''",".","speaker","(","str",",","optional",")",":","Speaker","name","for","multi-speaker",".","You","can","check","whether","loaded","model","is","multi-speaker","by","`","tts.is_multi_speaker","`","and","list","speakers","by","`","tts.speakers","`",".","Defaults","to","None",".","split_sentences","(","bool",",","optional",")",":","Split","text","into","sentences",",","synthesize","them","separately","and","concatenate","the","file","audio",".","Setting","it","False","uses","more","VRAM","and","possibly","hit","model","specific","text","length","or","VRAM","limits",".","Only","applicable","to","the","\ud83d\udc38TTS","models",".","Defaults","to","True","."]
code: def tts_with_vc_to_file(
      self,
      text: str,
      language: str = None,
      speaker_wav: str = None,
      file_path: str = "output.wav",
      speaker: str = None,
      split_sentences: bool = True,
  ):
      """Convert text to speech with voice conversion and save to file.
  
      Check `tts_with_vc` for more details.
  
      Args:
          text (str):
              Input text to synthesize.
          language (str, optional):
              Language code for multi-lingual models. You can check whether loaded model is multi-lingual
              `tts.is_multi_lingual` and list available languages by `tts.languages`. Defaults to None.
          speaker_wav (str, optional):
              Path to a reference wav file to use for voice cloning with supporting models like YourTTS.
              Defaults to None.
          file_path (str, optional):
              Output file path. Defaults to "output.wav".
          speaker (str, optional):
              Speaker name for multi-speaker. You can check whether loaded model is multi-speaker by
              `tts.is_multi_speaker` and list speakers by `tts.speakers`. Defaults to None.
          split_sentences (bool, optional):
              Split text into sentences, synthesize them separately and concatenate the file audio.
              Setting it False uses more VRAM and possibly hit model specific text length or VRAM limits. Only
              applicable to the 🐸TTS models. Defaults to True.
      """
      wav = self.tts_with_vc(
          text=text,
          language=language,
          speaker_wav=speaker_wav,
          speaker=speaker,
          split_sentences=split_sentences,
      )
      save_wav(
          wav=wav,
          path=file_path,
          sample_rate=self.voice_converter.vc_config.audio.output_sample_rate,
      )
  
imports: import tempfile
  import warnings
  from pathlib import Path
  from typing import Union
  import numpy
  from torch import nn
  from TTS.utils.audio.numpy_transforms import save_wav
  from TTS.utils.manage import ModelManager
  from TTS.utils.synthesizer import Synthesizer
  from TTS.config import load_config
label_desc: Use image node_id 20 for calling the TTS obj's underlying member method code with example usage: obj.tts_with_vc_to_file(text, language, speaker_wav, file_path, speaker, split_sentences) without return types