src/Providers/AcapelaProvider.php
private function getVoice(string $voice): string
    {
        $voice = trim($voice);
        if (strlen($voice) < 3) {
            throw new InvalidArgumentException("Unexpected voice name ({$voice}), names should be at least 3 characters long");
        }

        return strtolower($voice);
    }
private function getVoice(string $voice): string
    {
        $voice = trim($voice);
        if (strlen($voice) < 3) {
            throw new InvalidArgumentException("Unexpected voice name ({$voice}), names should be at least 3 characters long");
        }

        return strtolower($voice);
    }
private function getVoice ( string $ voice ) : string { $ voice = trim ( $ voice ) ; if ( strlen ( $ voice ) < 3 ) { throw new InvalidArgumentException ( "Unexpected voice name ({$voice}), names should be at least 3 characters long" ) ; } return strtolower ( $ voice ) ; }
Check if the voce is valid, and convert it to the required format.

@param string $voice The voice to use

@return string
Check if the voce is valid and convert it to the required format .