src/API/Implementation/TTS/IbmWatson/Voice/IbmWatsonVoicesTrait.php
Method getVoiceConstraints
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
private function getVoiceConstraints(): array
{
return [
IbmWatsonVoicesInterface::VOICE_ALLISON => new TtsVoiceFormat(
new Language(Language::CODE_ENGLISH),
Method getVoiceParameter
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getVoiceParameter(Language $language, array $additionalData = []): string
{
$voiceConstraints = $this->getVoiceConstraints();
/** @var string $voice */