Skip to content

Instantly share code, notes, and snippets.

View microsoft_speech_api_stt.py
import requests
import http.client
import urllib.parse
import uuid
import json
import io
import os
import sys
import time
from datetime import timedelta
View ibm_speech_api_tts.py
import json
from watson_developer_cloud import TextToSpeechV1
import time
from datetime import timedelta
import sys
import os
import argparse
#We need to get our API credentials in the code for authentication that we have stored as Environment Variables locally
View ibm_speech_api_stt.py
import json
from watson_developer_cloud import SpeechToTextV1
import time
from datetime import timedelta
import sys
import os
import io
import argparse
View ibm_nlp_api.py
import json
from watson_developer_cloud import NaturalLanguageUnderstandingV1
from watson_developer_cloud.natural_language_understanding_v1 \
import Features, EntitiesOptions, KeywordsOptions
import time
from datetime import timedelta
import sys
import os
import argparse
View microsoft_vision_api.py
import requests
import os
import sys
import time
from datetime import timedelta
import argparse
#We need to get our API credentials in the code for authentication that we have stored as Environment Variables locally
Ocp_Apim_Subscription_Key = os.environ.get("KEY")
View microsoft_speech_api_tts.py
import http.client
import urllib.parse
import json
from xml.etree import ElementTree
import os
import sys
import wave
import time
from datetime import timedelta
import argparse
View microsoft_nlp_api.py
import requests
import os
import sys
import json
import time
from datetime import timedelta
import argparse
#We need to get our API credentials in the code for authentication that we have stored as Environment Variables locally
View gcp_vision_api_test.py
import io
import os
from google.cloud import vision
from google.cloud.vision import types
import time
from datetime import timedelta
import sys
import argparse
View gcp_speech_api_test.py
import io
import os
import time
from datetime import timedelta
import sys
import argparse
#We need to get our API credentials in the code for authentication that we have stored as Environment Variables locally.
os.environ.get("GOOGLE_APPLICATION_CREDENTIALS")
View gcp_nlp_api_test.py
from google.cloud import language
from google.cloud.language import enums
from google.cloud.language import types
import os
import time
from datetime import timedelta
import sys
import argparse