This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GoogleSpeechLanguage.swift | |
// | |
// Created by Cory Liu on 2020/12/31. | |
//https://cloud.google.com/speech-to-text/docs/languages | |
//Note: Google accepts BCP47 language codes with capital letters ie. "en-US" as well as lower case BPC47 codes ie. "en-us". | |
//However in their response they return lowercase: "en-us". For the purposes of my project, I needed to reinitialize Google's response | |
//into this language enum object. Hence all case values are lower case. | |
enum GoogleSpeechLanguage: String, CaseIterable { |