Speech Synthesizer cannot produce more than 11 seconds of audio.
This issue is stale because it has been open for 30 days with no activity. Remove stale label or comment or this will be closed in 7 days. This issue was closed because it has been inactive for 7 days since being marked as stale.
Is there some parameter needed to increase the length of audio that the speech synthesizers supported by NeMo can produce?
This code here does not produce audio that covers the Text I provide in the code below, I only get 11 seconds of Audio. Also what is the maximum length of audio that can be produced at a time?
```
import torch
import IPython.display as ipd
from matplotlib.pyplot import imshow
from matplotlib import pyplot as plt
from nemo.collections.tts.models.base import SpectrogramGenerator, Vocoder
import soundfile as sf
import sys

# List pretrained models available in NeMo
print("Spectrogram Models")
print(SpectrogramGenerator.list_available_models())

print()
print("Vocoders")
print(Vocoder.list_available_models())


if torch.cuda.is_available():
  device = "cuda"
else:
  device = "cpu"

# Load our spectrogram and vocoder models onto our CPU
spectrogram_model = SpectrogramGenerator.from_pretrained("tts_en_tacotron2").eval().to(device)
vocoder = Vocoder.from_pretrained("tts_en_hifigan").eval().to(device)

text = "Within the chasmic depths of my mind, vague shapes, sounds and visions fight to be witnessed. A scattering of incoherent memories..... gateways to the blessed palace...... Darkness......Phase equations made flesh.....Darkness.....Waking dreams of a passionless mortal life long though buried....Darkness....Archs of impossible colors claw desperately across the back of my electronic eyes, my machine souls last attempt to ignite conciousness....Darkness....Light, waking neurons fired into life like a birthing galaxy aroused by the sound of plaintiff cries, not human or A.I, not daemon, distant. Ethereal to my spirit."

# Normalize the text and convert it into individual phonemes/tokens.
tokens = spectrogram_model.parse(text, normalize=True)

# Generate spectrogram from text
spectrogram = spectrogram_model.generate_spectrogram(tokens=tokens)

# Invert the spectrogram into audio samples
audio = vocoder.convert_spectrogram_to_audio(spec=spectrogram)

# Convert output from pytorch tensor to numpy array
spectrogram = spectrogram.cpu().detach().numpy()[0]
audio = audio.cpu().detach().numpy()[0]
audio_file = "output_audio.wav"
sf.write(audio_file, audio, samplerate=22050)
print(f"Audio saved to {audio_file}")

print(f'"{text}"\n')

ipd.Audio(audio, rate=22050)
```