'Load TTS using pico2wave.'

def get_tts_audio(self, message, language, options=None):

    with tempfile.NamedTemporaryFile(suffix='.wav', delete=False) as tmpf:
        fname = tmpf.name
    cmd = ['pico2wave', '--wave', fname, '-l', language, message]
    subprocess.call(cmd)
    data = None
    try:
        with open(fname, 'rb') as voice:
            data = voice.read()
    except OSError:
        _LOGGER.error('Error    trying    to    read    %s', fname)
        return (None, None)
    finally:
        os.remove(fname)
    if data:
        return ('wav', data)
    return (None, None)
