HttpClient for HTTP-based interactions with Deepgram’s API, ensuring consistency with Symfony’s existing HTTP stack.symfony/ai dependency).symfony/http-client), reducing friction in existing Symfony projects.symfony/ai package evolves.HttpClient options), but lacks built-in support for OAuth2 or JWT tokens (may require custom middleware).HttpClient exceptions; custom error mapping (e.g., Deepgram-specific status codes) may need extension.symfony/ai or symfony/http-client.DeepgramClient with Laravel’s HttpClient facade (if using guzzlehttp/guzzle).symfony/http-client via Laravel’s Symfony integration.AiEventDispatcher).Tests/Fixtures/audio.mp3)./speak, /listen, /models). Ensure compatibility with Deepgram’s latest API changes.symfony/ai (a new component). Upgrade paths may shift if Symfony AI evolves.symfony/http-client is compatible with Laravel’s Guzzle instance (e.g., shared middleware like retries).composer require symfony/ai-deepgram-platform symfony/http-client
# config/services.yaml
services:
Deepgram\Client:
arguments:
$apiKey: '%env(DEEPGRAM_API_KEY)%'
spatie/laravel-symfony-components.use Deepgram\Client;
$client = new Client($apiKey);
$result = $client->speak('Hello, world!'); // TTS
$transcript = $client->listen($audioFile); // STT
symfony/ai and symfony/http-client for breaking changes.How can I help you explore Laravel packages today?