Ask HN: How to boost Gemini transcription accuracy for company names?

23 points | by bingwu1995 6 days ago

18 comments

  • gearhart 3 hours ago
    We use openwhisper for transcription which accepts a list of "words to look out for" which we populate with a short list of the names of all the people and companies most likely to be mentioned in the text, and then we do a spell checking pass at the end using Gemini with a much longer list, telling it to look out for anything that might be a misspelling.

    It's not perfect, but it's taken it from being an issue that made all our transcripts look terrible, to an issue I no longer think about.

    I imagine just using the second spellchecking pass with Gemini would be almost as effective.

    • tifa2up 3 hours ago
      Don't solve it on the STT level. Get the raw transcription from Gemini then pass the output to an LLM to fix company names and other modifications.

      Happy to share more details if helpful.

      • idopmstuff 2 hours ago
        Yeah, I've done it with industry-specific acronyms and this works well. Generate a list of company names and other terms it gets wrong, and give it definitions and any other useful context. For industry jargon, example sentences are good, but that's probably not relevant for company names.

        Feed it that list and the transcript along with a simple prompt along the lines of "Attached is a transcript of a conversation created from an audio file. The model doing the transcription has trouble with company names/industry terms/acronyms/whatever else and will have made errors with those. I have also attached a list of company names/etc. that may have been spoken in the transcribed audio. Please review the transcription, and output a corrected version, along with a list of all corrections that you made. The list of corrections should include the original version of the word that you fixed, what you updated it to, and where it is in the document." If it's getting things wrong, you can also ask it to give an explanation of why it made each change that it did and use that to iterate on your prompt and the context you're giving it with your list of words.

        • remus 3 hours ago
          I've had some luck with this in other contexts. Get the initial transcript from STT (e.g. whisper), then feed that in to gemini with a prompt giving it as much extra context as possible. For example "This is a transcript from a youtube video. It's a conversation between x people, where they talk about y and z. Please clean up the transcript, paying particular attention to company names and acronyms."
      • meerab 1 hour ago
        I use a two-pass approach - first pass with ASR (OpenAI Whisper) and second pass with an LLM. I ask users to provide context upfront and use that as the "initial_prompt" parameter in Whisper: https://github.com/openai/whisper/discussions/963#discussion...

        Gemini might have similar capabilities for custom vocabulary, though I'm not certain about their specific implementation. The two-pass ASR+LLM approach could work with Gemini's output as well.

        • simonw 3 hours ago
          Have you tried feeding it a system prompt with a list of custom vocabulary? I would expect that to work really well.

          "Transcribe this audio. Be careful to spell the following names and acronyms right: list-goes-here"

          • rancar2 2 hours ago
            The business edition of Wispr Flow does this well, and includes sharing among teams so you can make sure that the company wide vocabulary is consistent and well recognized.

            https://wisprflow.ai/business

            • bbarnett 1 hour ago
              Give it a database backend with lots and lots of facts. Things verified by humans. There, AI 'fixed'.
              • Reubend 4 hours ago
                Any company names or special acronyms should be added to your prompt.
                • another_twist 3 hours ago
                  Use any proper ASR service that supports custom vocabulary ? Transcribe and Deepgram definitely support it and if you want to go fancy Nemo with custom vocabulary.

                  Are there constraints where you have to use Gemini ?

                  • gallexme 5 hours ago
                    Adding it to the instructions worked well for me with specific terms
                    • alex-skobe 2 hours ago
                      We have used markdown and list of vocabulary at the end like

                      Return company name only from dictionary

                      #dictionary 1:Apple 2:..

                      And than Vercel AI sdk + Zod Schema + Gemini 2.5 pro and it pretty accurate

                      • vayup 3 hours ago
                        Something along these lines, as part of the prompt, has worked for me.

                                       # User-Defined Dictionary
                                        Always use the following exact terms if they sound similar in the audio:
                        
                                        ```json
                                        {{jsonDictionary}}
                                        ```
                        • lysecret 4 hours ago
                          I generally found 4o-transcribe to be more performant than gemini fyi.
                          • semessier 5 hours ago
                            adding to the question, ruling out fine-tuning for practicality, what about injecting names towards the embedding but not into the context?
                          • sayang1 1 minute ago
                            [dead]
                            • huflungdung 3 hours ago
                              [dead]
                              • samtts 3 hours ago
                                [dead]
                                • halobcaklik 40 minutes ago
                                  [flagged]
                                • koko12 1 hour ago
                                  [flagged]