public function getUri(): string
    {
        $tts = new TextToSpeechHandler($this->text, $this->provider);

        $filename = $tts->generateFilename();

        if (!$this->directory->has($filename)) {
            $data = $tts->getAudioData();
            $this->directory->write($filename, $data);
        }

        return "x-file-cifs://" . $this->directory->getSharePath() . "/{$filename}";
    }
public function getUri(): string
    {
        $tts = new TextToSpeechHandler($this->text, $this->provider);

        $filename = $tts->generateFilename();

        if (!$this->directory->has($filename)) {
            $data = $tts->getAudioData();
            $this->directory->write($filename, $data);
        }

        return "x-file-cifs://" . $this->directory->getSharePath() . "/{$filename}";
    }
public function getUri ( ) : string { $ tts = new TextToSpeechHandler ( $ this -> text , $ this -> provider ) ; $ filename = $ tts -> generateFilename ( ) ; if ( ! $ this -> directory -> has ( $ filename ) ) { $ data = $ tts -> getAudioData ( ) ; $ this -> directory -> write ( $ filename , $ data ) ; } return "x-file-cifs://" . $ this -> directory -> getSharePath ( ) . "/{$filename}" ; }
Get the URI for this message.

If it doesn't already exist on the filesystem then the text-to-speech handler will be called.

@return string
Get the URI for this message .