{"slug": "how-to-build-a-free-ai-interview-assistant-with-python", "title": "How to Build a Free AI Interview Assistant with Python", "summary": "A tutorial from FloxoLab shows how to build a free Windows AI interview assistant in Python that uses Deepgram's Nova-3 speech-to-text and Groq's GPT-OSS 20B model to transcribe questions from a microphone or WASAPI loopback system audio and stream suggested answers from a practice profile, résumé and job description. The setup runs on 64-bit Python 3.13 and requires internet access for both cloud APIs; Deepgram's $200 starting credit covers audio and Groq's Free Plan covers answer generation, while a 30-minute session with 10 answers costs about $0.15 at Deepgram's promotional rate or $0.23 at its regular rate, based on API pricing last checked November 29, 2026. The app converts multichannel playback to mono 16-bit PCM, uses interim and final Deepgram results plus a speech-end signal to detect a completed question, and keeps the last four conversation messages as context for the next answer.", "body_md": "You can build an AI interview assistant for Windows with Python, Deepgram and Groq. The desktop app transcribes a question from your microphone or Windows playback and streams an answer suggestion using your practice profile, résumé and job description. It needs an internet connection for both cloud APIs. Deepgram's $200 starting credit can cover hundreds of hours of mono Nova-3 audio, and Groq has a Free Plan for answer generation. You can start within both allowances without buying a monthly subscription for the app.\n\n**What it costs to get started**\n\nYou can try the assistant for **$0** while Deepgram's starting credit covers your audio and your answer requests fit within Groq's Free Plan. At published paid rates, a 30-minute session with 10 GPT-OSS 20B answers costs about **$0.15** at Deepgram's promotional rate or **$0.23** at its regular rate. This assumes mono audio and 1,500 input and 250 output tokens per answer. [See the cost breakdown](#how-much-does-a-diy-ai-interview-assistant-cost).\n\n**API pricing last checked on November 29, 2026.** [Deepgram pricing](https://deepgram.com/pricing) · [Groq model pricing](https://console.groq.com/docs/models) · [Groq Free Plan limits](https://console.groq.com/docs/rate-limits)\n\n## What you'll build and what you need\n\nYou'll run a Windows desktop control panel and a separate window with the transcript and answer. The app reads one audio source at a time. It can test that source locally before you start listening, load context from files, switch answer models and keep the last four conversation messages for the next answer. For the setup below, you need Windows 10 or 11, 64-bit Python 3.13, a microphone or active audio playback device, and your own Deepgram and Groq API keys. FloxoLab reproduced the setup on one Windows machine.\n\n## How the app turns a question into an answer\n\nChoose one source in the **Audio** tab. The microphone captures what you speak into it. **System audio - Current Windows output** uses WASAPI loopback to capture what Windows plays through your current speakers or headphones. Loopback can pick up notifications and other apps on the same output. Choose the output in Windows first, then refresh the app's device list. This setup does not require a virtual audio cable. [Microsoft WASAPI loopback](https://learn.microsoft.com/en-us/windows/win32/coreaudio/loopback-recording) · [PyAudioWPatch](https://github.com/s0d3s/PyAudioWPatch)\n\nThe app converts multichannel playback to mono before sending it to Deepgram as 16-bit PCM. The following excerpt illustrates the conversion. It keeps the sample rate unchanged. Pass the actual rate reported by your capture device to the speech API.\n\n``` php\nimport numpy as np\n\ndef pcm16_to_mono(raw: bytes, channels: int) -> bytes:\n    if channels < 1:\n        raise ValueError(\"channels must be at least 1\")\n    samples = np.frombuffer(raw, dtype=np.int16)\n    if channels == 1:\n        return raw\n    complete_samples = (samples.size // channels) * channels\n    frames = samples[:complete_samples].reshape(-1, channels)\n    return frames.mean(axis=1, dtype=np.float32).astype(np.int16).tobytes()\n```\n\nDeepgram returns text as the person speaks. An interim result may change. A final result commits a transcript segment, and a speech-end signal helps the app decide when the question is complete. The controller allows a brief pause for the speaker to continue, then sends the assembled text to Groq. The Tkinter window displays the response as chunks arrive. [Deepgram on endpointing and interim results](https://developers.deepgram.com/docs/understand-endpointing-interim-results/)\n\n## Install Python and set up the project\n\n1. Install **64-bit Python 3.13** on Windows. If you want to check Tkinter separately, run`py -3.13 -m tkinter` . A small test window should open.[Python on Windows](https://docs.python.org/3.13/using/windows.html)\n2. Extract the source bundle into a folder you control and open PowerShell there. The bundle should include `main.py` , the application modules, the companion tests and`requirements-repro.txt` .[See the source code and download](#source-code-and-download) .\n3. Create a virtual environment and run the commands below. Calling the virtual environment's interpreter directly keeps these packages separate from other Python projects. `--list-devices` prints the available inputs and exits. The last command opens the control window.[Python venv](https://docs.python.org/3.13/library/venv.html)\n\n```\npy -3.13 -V\npy -3.13 -m venv .venv\n.\\.venv\\Scripts\\python.exe -m pip install -r requirements-repro.txt\n.\\.venv\\Scripts\\python.exe -m pip check\n.\\.venv\\Scripts\\python.exe -m unittest discover -s tests -v\n.\\.venv\\Scripts\\python.exe main.py --list-devices\n.\\.venv\\Scripts\\python.exe main.py\n```\n\nThe local test environment uses `deepgram-sdk 5.3.2`, `openai 2.21.0`, `PyAudioWPatch 0.2.12.8` and `sounddevice 0.5.5`. Use the versions in the companion file when reproducing the guide. The original requirements allow older and newer Deepgram releases, while this app imports SDK v5 event types. [Deepgram Python SDK migration notes](https://github.com/deepgram/deepgram-python-sdk/blob/main/docs/Migrating-v5-to-v6.md)\n\n## Connect Deepgram and Groq\n\nIn the [Deepgram Console instructions](https://developers.deepgram.com/docs/create-additional-api-keys), choose your project, open **Settings → API Keys** and create a key with the access the app needs. In Groq Console, create a separate key using the [Groq quickstart](https://console.groq.com/docs/quickstart). Paste both into **AI & Overlay** and select **Save**. Keep the model defaults for your first run. You should see `openai/gpt-oss-20b` in **Groq model**. [Groq OpenAI compatibility](https://console.groq.com/docs/openai)\n\nOn **Save**, the app stores API keys separately using Windows DPAPI. Keep keys out of source files, screenshots, and shared archives. The profile and file paths are stored as ordinary settings, so leave personal information out of any demo you plan to share. [Microsoft DPAPI](https://learn.microsoft.com/en-us/windows/win32/api/dpapi/nf-dpapi-cryptprotectdata)\n\n## Set up your microphone or Windows playback\n\nOpen **Audio** and select the input you want to test. Choose **System audio - Current Windows output** if you will play a prerecorded question, or choose a microphone if you will read it aloud. For a USB headset, set Windows to play through that headset before choosing the loopback source. Run **Test selected source for 2 seconds** with sound playing. A positive peak confirms local capture. Do this test again if you change devices.\n\n## Add your résumé and the job description\n\nOpen **Profile**. Use **Browse** to load the fictional résumé from the source bundle. Paste or load the job description. Keep the first example small so you can check exactly which claims the profile supports. The app reads PDF, DOCX, TXT and Markdown. With a scanned PDF, extract or paste the relevant text first.\n\n## Try one practice question\n\n1. In **Profile** , add a fictional candidate's notes and paste a short job description. Two sentences are enough. For example, “I maintained a weekly data-import script and added checks for duplicate rows. The role involves automating reporting.”\n2. With your audio input selected, have the sample recording ready. You can use the included **test_phrase.wav** when testing Windows playback.\n3. Choose **Start Listening** . When the app is listening, speak or play an English question such as “Tell me about a time you made a recurring process more reliable.”\n4. Watch for the transcript, then the suggestion. Check that it sticks to the facts in the profile. Click **Stop** when finished.\n\nThe two replay images show actual outputs from the synthetic question. The answer's claim about saving hours is unsupported by the fixture.\n\nFor a longer mock interview, prepare three questions. Pause the recording between questions or ask a practice partner to read them. Answer in your own words first, then look at the suggested structure. Check which details the model added and verify them before repeating them.\n\n## Troubleshoot one step at a time\n\n| What you see | What to check | \n|---|---|\n| No signal in the audio test | Check the selected microphone or playback output. Play a sample through that output, then click **Refresh** after changing devices. | \n| There is a signal but no transcript | Check that listening has started, that Deepgram accepts your key, and that the test question is audible and in English. | \n| The transcript appears but no answer follows | Let the speaker finish and pause. Very short acknowledgements may be filtered. Check the Groq key, selected model and status messages. | \n| The provider returns 401 or 429 | For 401, check the key and its project. For 429, check the project quota and wait for the retry interval if the provider supplies one. [Handling API errors and retries](https://floxolab.com/blog/n8n-retry-failed-api-requests-without-duplicates) | \n| The answer adds details you never supplied | Shorten the practice profile and ask the model to stick to the facts provided. Correct the answer before using it. | \n\nThis version is set up to transcribe English speech. The answer language setting controls what the app asks the LLM to write. It does not change the transcription language.\n\n## Deepgram free credits and real-time transcription costs\n\nDeepgram advertised **$200 in starting credit** on November 29, 2026, with no card required to start and no expiration on the credit. For English Nova-3 streaming, the pricing page showed **$0.0048 per minute** as a promotion and **$0.0077 per minute** as the regular comparison rate. The credit lasts for about **694 hours** at the promo rate or **433 hours** at the regular rate, assuming mono audio and no other use of the credit. Those are conversions from posted rates. Promotional pricing can change. [Deepgram pricing](https://deepgram.com/pricing)\n\n| Mono audio processed | Promo at $0.0048/min | Regular at $0.0077/min | \n|---|---|---|\n| 30 minutes | $0.144 | $0.231 | \n| 1 hour | $0.288 | $0.462 | \n| 10 hours | $2.88 | $4.62 | \n| 50 hours | $14.40 | $23.10 | \n| 100 hours | $28.80 | $46.20 | \n| 500 hours | $144.00 | $231.00 | \n\nIf every session uses its full slot and you spend the credit only on this workflow, it covers **1,388 sessions of 30 minutes or 694 sessions of 60 minutes** at the promo rate. At the regular rate, it covers **865 or 432 full sessions**, respectively. Deepgram charges by the second of processed audio. Measure what reaches the API, including any transmitted silence. If you send multiple billable channels, Deepgram counts their combined duration. After the credit is used, check your billing options before continuing. Deepgram documents an HTTP 402 error when available funds are insufficient. [Deepgram pricing and billing FAQ](https://deepgram.com/pricing) · [Deepgram API errors](https://developers.deepgram.com/docs/errors)\n\n## Groq Free Plan limits and pay-as-you-go pricing\n\nFor GPT-OSS 20B and GPT-OSS 120B, the published Free Plan baseline was **30 requests per minute, 1,000 per day, 8,000 tokens per minute and 200,000 per day** on November 29, 2026. Check the limits for your organization. A few requests with long contexts can hit a token limit before you reach the request count. The app uses **Groq**, which provides model inference. **Grok** is a model family from xAI. [Groq quickstart](https://console.groq.com/docs/quickstart) · [Groq model limits](https://console.groq.com/docs/rate-limits)\n\n| Model ID | Paid USD per 1M input tokens | Paid USD per 1M output tokens | \n|---|---|---|\n| openai/gpt-oss-20b | $0.075 | $0.30 | \n| openai/gpt-oss-120b | $0.15 | $0.60 | \n| qwen/qwen3.8-27b (preview) | $0.80 | $4.00 | \n\n**Groq model** accepts a compatible model ID. Change it in **AI & Overlay** and start a new session. The walkthrough and timings use GPT-OSS 20B. Availability, quota and answer quality should be checked separately for any other model. [Groq model catalog](https://console.groq.com/docs/models) · [GPT-OSS 20B](https://console.groq.com/docs/model/openai/gpt-oss-20b)\n\nFor a planning estimate, assume **1,500 input and 250 billable output tokens per answer**. Input includes the question, system instructions, profile, résumé, job description and up to four recent messages. A shorter test prompt used 367 input and 112 output tokens. The prices below use the larger planning scenario and assume paid rates.\n\n| Answers | GPT-OSS 20B | GPT-OSS 120B | Qwen3.8-27B | \n|---|---|---|---|\n| 10 | $0.001875 | $0.003750 | $0.022000 | \n| 100 | $0.018750 | $0.037500 | $0.220000 | \n| 1,000 | $0.187500 | $0.375000 | $2.200000 | \n\nTo use the Developer Plan, open billing in the Groq Console and add a valid payment method. Groq bills usage at the end of the monthly cycle and when you first cross cumulative usage thresholds of $1, $10, $100, $500 or $1,000, with regional exceptions. Payment is automatic when an invoice is issued. Groq documents a minimum of $0.50 in usage before it bills you. The minimum is a billing threshold. The published model does not require a fixed monthly subscription or upfront credit purchase. Check regional billing details and configure organization spend limits before generating traffic on a paid account. [Groq billing FAQ](https://console.groq.com/docs/billing-faqs) · [Groq spend limits](https://console.groq.com/docs/spend-limits)\n\n## How much does a DIY AI interview assistant cost?\n\nYou can pay **$0** while Deepgram credit covers all processed audio and you stay within Groq Free quotas. If you run out of Deepgram credit or move to a paid Groq plan, estimate the two API bills separately. These examples assume mono English streaming, GPT-OSS 20B and the 1,500/250-token planning scenario. They exclude taxes and use case-specific extras.\n\n| Example | Billable audio | Answers | Promo speech + paid answers | Regular speech + paid answers | \n|---|---|---|---|---|\n| Occasional practice, 4 half-hour sessions | 2 hours | 40 | $0.58 | $0.93 | \n| Daily practice, 30 half-hour sessions | 15 hours | 300 | $4.38 | $6.99 | \n| Intensive practice | 100 hours | 2,000 | $29.18 | $46.58 | \n\nIn these paid examples, processed audio accounts for most of the cost. Stop listening when the session ends and send only the context you need. The desktop app itself has no monthly fee in this setup. For a commercial reference, on November 29, 2026, CoPilot Interview advertised a free plan with sessions up to 15 minutes and a $24.99/month Standard plan with sessions up to 60 minutes. Compare the features you need when weighing a subscription against running the APIs yourself. [CoPilot Interview pricing](https://copilotinterview.com/pricing) [Estimating AI workflow costs with token counts](https://floxolab.com/blog/ai-email-classifier-cost-per-1000-messages)\n\n## What we measured on Windows\n\nFloxoLab installed the pinned dependencies in a fresh Python 3.13.12 environment, passed nine tests and verified Windows playback with a synthetic spoken question. The microphone opened and returned 43,168 frames in a one-second local check. That verifies capture frames. A controlled spoken microphone test was outside this run. The WASAPI playback test returned 47,104 frames with an 89.8% peak on the test machine. Separate tests extracted text from PDF, DOCX and TXT and checked that settings did not contain plaintext API keys. The application used an 88.3 MiB working set at idle in one clean-launch sample.\n\n| Measurement | Observed in one synthetic run | \n|---|---|\n| Deepgram first interim transcript, from first audio send | 1.086 s | \n| Deepgram first final segment, from first audio send | 3.995 s | \n| Groq first visible answer fragment, from chat request | 0.426 s | \n| Groq entire streamed response, from chat request | 0.523 s | \n| Groq input / output tokens | 367 / 112 | \n\nThe speech fixture contained 4.234 seconds of synthesized audio followed by 0.5 seconds of silence. The test passed its actual transcript to Groq with the app's prompt builder. The two timers exclude the full UI and controller path. The figures are a single observation, with no percentiles or guaranteed latency. At published rates, the speech sent was equivalent to roughly $0.00038 at the promo rate and the Groq response to $0.000061 at paid 20B rates. Those are tariff equivalents. Account charges were not measured.\n\nThe fixture gave the model evidence of a duplicate-row check. The answer added that it saved the team hours each week, a claim the fixture did not support. A version grounded in the profile is “I maintained a weekly data import and added a check for duplicate rows.” Check every concrete claim before using a suggestion.\n\n## Privacy and permitted use\n\nDeepgram receives audio from the chosen source. Groq receives the question, recent message text and profile context, including extracted résumé and job-description text. Local logs can contain question excerpts. Windows DPAPI protects saved keys for the current user. Treat local profile fields and logs as readable from that account. Before using real material, review both providers' data controls and remove identifying details that the practice session does not need. [Deepgram data handling](https://developers.deepgram.com/trust-security/your-data) · [Groq data handling](https://console.groq.com/docs/your-data)\n\nUse a recording you made or practice with someone who knows what will be captured and sent to the cloud. During an actual interview, follow the organizer's rules and get explicit permission for the specific feature and cloud processing. If the organizer permits captions only, leave answer generation off by using an approved captioning tool. This app's normal session connects the transcript to suggestions.\n\n## Source code and download\n\nThe ZIP includes the Python source, pinned dependencies, an example configuration without keys, tests, and fictional sample files. [Download the Python source ZIP](https://floxolab.com/uploads/blog/build-free-ai-interview-assistant/interview-assistant-python-source.zip)\n\nThe application source code is released under the [MIT License](https://opensource.org/license/mit). Copyright (c) 2026 Stepan Nikonov (FloxoLab). The ZIP includes the license and dependency notices. The MIT grant applies to the application code. [FloxoLab is the official project website](https://floxolab.com).\n\n## Frequently asked questions\n\n### Can I build an AI interview assistant for free?\n\nYes, while Deepgram credit covers your processed audio and your text requests fit within Groq's Free Plan limits. You also need a Windows PC and Internet access.\n\n### How long do Deepgram's $200 free credits last?\n\nAbout 694 hours at $0.0048 per minute or about 433 hours at $0.0077 per minute for mono Nova-3 streaming. A second channel or other API usage changes that calculation.\n\n### Is the Groq API free?\n\nGroq offers a Free Plan with per-model limits on requests and tokens. Check your organization's limits in the Console.\n\n### How much does Groq cost after upgrading?\n\nGPT-OSS 20B was listed at $0.075 per million input tokens and $0.30 per million output tokens. At 1,500 input and 250 output tokens per answer, 100 answers cost about $0.019 at published rates.\n\n### Can I run it without a monthly subscription?\n\nYes. The app depends on usage-based providers with starter credit or free quotas. Choosing a paid API plan can lead to usage charges.\n\n### Can Python capture Windows system audio?\n\nYes. This project uses WASAPI loopback through PyAudioWPatch to read the audio on the selected Windows playback output.\n\n### Do I need a virtual audio cable?\n\nNo. Pick the loopback source for the active output and use the local audio test to confirm that sound reaches it.\n\n### Can it use my résumé and the job description?\n\nYes. Load files with selectable text or paste only the relevant details. The app sends the extracted text as context to Groq. Scanned PDFs without a text layer require separate OCR or pasted text.\n\n### Can I use different models?\n\nYes. Choose a Deepgram option in the speech model dropdown or enter a compatible Groq model ID. Confirm the model supports the app's streaming API parameters before using it.\n\n### Does the assistant work offline?\n\nThe desktop UI and local audio test can run offline. Transcription and suggestions in this walkthrough require cloud connections.\n\n### Does it support multiple languages?\n\nThis version sends English speech to Deepgram with language set to `en`. The answer-language setting asks Groq to write in another language. Changing the response language leaves speech recognition in English.\n\n### Where is audio processed?\n\nWindows captures and converts the audio locally. The app then sends it to Deepgram for transcription. Groq receives text for the suggestion.\n\n## Start with one question\n\nUse the included fictional résumé, check your audio source and verify a single answer against the facts you supplied. Once that works, try a three-question mock interview and compare the suggestions with what you would actually say.\n\nTo compare this desktop workflow with a scheduled API workflow, see FloxoLab's [guide to n8n automation](https://floxolab.com/blog/seo-automation-with-n8n). For an example of handing more decisions to a model, see [AI agents for business](https://floxolab.com/blog/ai-agents-for-business). If you are troubleshooting a separate HTTP integration that is not receiving events, see the [n8n webhook troubleshooting guide](https://floxolab.com/blog/n8n-webhook-not-working).", "url": "https://wpnews.pro/news/how-to-build-a-free-ai-interview-assistant-with-python", "canonical_source": "https://floxolab.com/blog/build-free-ai-interview-assistant", "published_at": "2026-11-28 16:00:00+00:00", "updated_at": "2026-11-28 20:13:32.409478+00:00", "lang": "en", "topics": ["ai-tools", "ai-products", "large-language-models", "natural-language-processing"], "entities": ["FloxoLab", "Deepgram", "Groq", "Nova-3", "GPT-OSS 20B", "Python 3.13", "Windows", "WASAPI"], "also_reported_by": [], "takeaway": "Streaming Deepgram interim and final transcripts plus a speech-end signal lets the app detect a completed question, and a 30-minute session with 10 GPT-OSS 20B answers costs about $0.15 at Deepgram's promotional rate or $0.23 at its regular rate on mono audio with 1,500 input and 250 output tokens p", "recommendation": {"advice": "Use Deepgram's $200 starting credit and Groq's Free Plan to run the assistant at $0, and keep answers to 1,500 input and 250 output tokens to hold a 30-minute session near $0.15–$0.23.", "playbook": "llm-cost", "playbook_url": "https://wpnews.pro/playbooks/llm-cost"}, "alternates": {"html": "https://wpnews.pro/news/how-to-build-a-free-ai-interview-assistant-with-python", "markdown": "https://wpnews.pro/news/how-to-build-a-free-ai-interview-assistant-with-python.md", "text": "https://wpnews.pro/news/how-to-build-a-free-ai-interview-assistant-with-python.txt", "jsonld": "https://wpnews.pro/news/how-to-build-a-free-ai-interview-assistant-with-python.jsonld"}}