Quyidagi misol, shisha tizimidan foydalanib, Python dasturida ovoz to'plash uchun ishlatiladigan dastur: python import os import time # zarur kutubxona va vositalarni o'rnatish os.system ((("sudo apt-get update") os.system ((("sudo apt-get install -y python-pyaudio python3-pyaudio") os.system ((("sudo apt-get install -y python-pip python3-pip") os.system ((("sudo install pip SpeechRecognition") # SpeechRecognition import speech_recognition as sr # Recognizer ob'ektini yaratish = sr.Recognizer) # Maqoqdagi mikrofonni o'rnatishni to'xtatish # Maqoqdagi mikrofonni o'rnatishni to'xtatish mic_index = 0 # Maqoqdagi mikrofonni
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence