value => new AudioResponseStreamAction($audio), StreamingMethod::NGINX->value => new AudioNginxStreamAction($audio), default => throw new RuntimeException('AUDIO_STREAMING_METHOD must be specified in your .env file'), }; return $action->stream(); } }