felixjunghans / google_speech

Flutter google spech
MIT License
68 stars 41 forks source link

feat: Auth Google Cloud with api keys #45

Closed AnNguyen98 closed 11 months ago

AnNguyen98 commented 11 months ago

Implement Auth Google Cloud with api keys

felixjunghans commented 11 months ago

Hey @AnNguyen98 thanks for your contribution. I will merge it and create a new Version of google_speech soon.

felixjunghans commented 9 months ago

@AnNguyen98 I added projectId in V2 because it is needed for

recognizer: 'projects/$projectId/locations/global/recognizers/_',

NguyenTheAn98 commented 9 months ago

@felixjunghans Thanks, I saw it in google docs. But I have a question, why you don't define full model in RecognitionModel?

latest_long | Best for long form content like media or conversation.
latest_short | Best for short form content like commands or single shot directed speech.
command_and_search | Best for short queries such as voice commands or voice search.
phone_call | Best for audio that originated from a phone call (typically recorded at an 8khz sampling rate).
video | Best for audio that originated from video or includes multiple speakers. Ideally the audio is recorded at a 16khz or greater sampling rate. This is a premium model that costs more than the standard rate.
default | Best for audio that is not one of the specific audio models. For example, long-form audio. Ideally the audio is high-fidelity, recorded at a 16khz or greater sampling rate.
medical_conversation | Best for audio that originated from a conversation between a medical provider and patient.
medical_dictation | Best for audio that originated from dictation notes by a medical provider.
felixjunghans commented 9 months ago

I think at the time I created it, some were not yet available. I'll try to update it soon and add the missing ones.

AnNguyen98 commented 9 months ago

@felixjunghans I updated model, please help me review this PR