Using the Generative Artificial Intelligence, talking with ChatGPT

From MiRTA PBX documentation
Revision as of 10:59, 15 January 2025 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

To be able to talk with ChatGPT, you need three components:

- A Google Speech to Text subscription using a Service Account

- A ChatGPT API Key with at least some credit

- A Google Text to Speech subscription using a API Key

For Google Speech to Text, you need to log into the Google console at https://console.cloud.google.com/ and create/select a Project.

In the APIs & Services page, enable the [ Cloud Speech-to-Text API ].

You need to create a Service Account. You can go back in the IAM & Admin page and select [ Service Accounts ] or using the [ Credentials ] section, create a Service Account. Be aware the service account authentication is a JSON file that the web page download automatically and once downloaded, it cannot be downloaded, so you need to carefully save it.

For Google Text to Speech, you need to log into the Google console at https://console.cloud.google.com/ and create/select a Project.

In the APIs & Services page, enable the [ Cloud Speech-to-Text API ].

You need to create an API key. Access the Credentials for the [ APIs & Services ] and create an API key. You can restrict the IP allowed to use the service. An API key is something like AIzaSyAVA4f5Q53sxdeAFVESiL1AHdrBXt_q8gc

For ChatGPT API Key, you need to log into the ChatGPT platform at https://platform.openai.com/

Press the [ Start building ] button on the top right and create an Organization. Continue until you can generate the key and buy some credit.

You can review your credit from the project setting page at https://platform.openai.com/settings/organization/general by choosing Usage