Skip to content
Advertisement

Laravel 8 (PHP) & Google Cloud Speech API: Streaming calls are not supported while using the REST transport.)

Wassup Guys,

I’ve managed to install the Google Cloud Speech Api and use my .json file as credentials for the speech client.

Now I’m getting the “Streaming calls are not supported while using the REST transport.” error.

Did I miss something? Below is the method of my controller. AudioController.php

JavaScript

Advertisement

Answer

Make sure gRPC for PHP is installed and enabled.

Check your php.ini file for:

extension=grpc.so – Linux.

extension=php_grpc.dll – Windows.

Add the composer dependency:

JavaScript

Install gRPC for PHP

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement