speech to text

44 views
Skip to first unread message

Dharmendra Goyal

unread,
Sep 21, 2017, 8:19:29 AM9/21/17
to Chromium-dev

i am referring this url https://github.com/rogerthomas84/php-speech-to-text/blob/master/README.md
getting response null

below is my  code

include 'GoogleSpeechToText.php';

// Your API Key goes here.
$apiKey = 'xxxxxxxxxxxxxxxxxxxxx';
$speech = new GoogleSpeechToText($apiKey);
$file = realpath(__DIR__ . '/quick.flac'); // Full path to the file.
$bitRate = 44100; // The bit rate of the file.
$result = $speech->process($file, $bitRate, 'en-US');
print_r($result);die;

please help me out for this issue.

PhistucK

unread,
Sep 21, 2017, 5:45:50 PM9/21/17
to dharmend...@47billion.com, Chromium-dev
(Sorry for the generic response, there have been numerous off topic threads about this already)
Unless you are using the speech API for Chrome development, you are not allowed to use it (see https://www.chromium.org/developers/how-tos/api-keys and many, many past discussions).
Instead, look into the Cloud Speech API.
For discussions regarding the cloud speech API, see https://groups.google.com/forum/#!forum/cloud-speech-discuss or stackoverflow.com with the google-cloud-speech tag.

Do not post about this again in the various Chromium groups. It is completely off topic.




PhistucK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/eec3ba84-7dfe-4838-afeb-9c182af3a28d%40chromium.org.

Reply all
Reply to author
Forward
0 new messages