# code
- you can and SHOULD use AI when writing code
- please avoid some of the things that AI likes to do in code:
- write long, unnecessary comments on self explanatory code
- use non-ascii characters in comments
- generate redundant (even though it may be correct) code
- write repetitive code that could be easily refactored
- reimplement functionality that can be taken from a library
- in short, PRs that are AI generated without human guidance tend to be unnecessarily long
Visual Studio Code (VSCode) reports an error (yellow squiggly lines) saying "Import [nameOfModule] could not be resolved by Pylance (reportMissingImports)". You may be using a virtual environment (e.g., venv).
You need to tell Pylance where pip has installed the module you are trying to import. This is called an "additional path".
- Find the location of the module. In the VSCode terminal within your project enter the python interpreter by typing
python. - Once the interpreter is active (shown by >>> instead of $ or %) type
import [nameOfModule]and press enter.
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
| #!/bin/bash | |
| set -eo pipefail | |
| # Purge existing drivers first if needed | |
| sudo apt-get purge --auto-remove -y "nvidia*" | |
| sudo ubuntu-drivers autoinstall | |
| sudo apt-mark manual nvidia-prime nvidia-settings libnvidia-compute-440:i386 libnvidia-decode-440:i386 libnvidia-encode-440:i386 libnvidia-gl-440:i386 |
Base URL: https://www.google.com/speech-api/v1/recognize
It accepts POST requests with voice file encoded in FLAC format, and query parameters for control.
client
The client's name you're connecting from. For spoofing purposes, let's use chromium
lang
Speech language, for example, ar-QA for Qatari Arabic, or en-US for U.S. English