با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نصب / ارتقاء کتابخانه
شما یک پیغام خطایی شبیه E: Unable to locate package python3-venv در هنگام پیکربندی یک محیط مجازی پایتون جدید نیست.
در نسخههای قدیمیتر اوبونتو، بسته متا برای محیط مجازی پایتون 3 ( python3-venv ) در دسترس نیست. به جای آن از یک نسخه کاملاً واجد شرایط استفاده کنید:
sudo apt-get install python3-dev python3.4-venv
شما یک پیام خطایی شبیه به No matching distribution found یا <wheel> is not a supported wheel on this platform دریافت می کنید.
معماری سخت افزار را بررسی کنید:
uname -a Linux raspberrypi 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux
این کتابخانه فقط روی سخت افزار با معماری linux-armv7l و linux-x86_64 پشتیبانی می شود. برای سایر سخت افزارها، به جای آن از سرویس دستیار Google استفاده کنید.
مسائل مربوط به اعتبارنامه
هنگام تلاش برای ایجاد اعتبار با ابزار مجوز، این ابزار از شما می خواهد که از یک URL بازدید کرده و به حساب Google خود وارد شوید. سپس صفحه یک پیغام خطا را نمایش می دهد (به عنوان مثال، "مشکلی پیش آمد").
دستیار پاسخ می دهد من نمی دانم چگونه در این مورد کمک کنم یا نمی فهمم.
بررسی کنید که صدای شما به درستی شناسایی شده است. خروجی کد نمونه را برای رونوشت درخواست کاربر بررسی کنید. شما همچنین می توانید به فعالیت من نگاه کنید. میتوانید برای بررسی مشکلات کیفیت صدا، صدای دریافتشده توسط «دستیار» را پخش کنید. اگر نویز بیش از حد شنیدید یا صدا مخدوش است، بررسی کنید که میکروفون شما به درستی پیکربندی شده باشد یا میکروفون دیگری را امتحان کنید.
مسائل مربوط به صفت
«دستیار» ویژگیای را که به مدل اضافه کردهاید تشخیص نمیدهد.
اگر نمونه دستگاهی را برای یک مدل ایجاد کرده باشید، وقتی مدل آن توسط کاربران دیگر تغییر میکند، نمونه دستگاه بهطور خودکار بهروزرسانی نمیشود . باید به صورت دستی نمونه دستگاه را با استفاده از ابزار خط فرمان ثبت نام یا REST API دوباره ثبت کنید. می توانید پیدا کنید شناسه نمونه دستگاه در خروجی نمونه
مشکلات Device Actions
دستیار Google پاسخ می دهد که برنامه شما در دستگاه شما پشتیبانی نمی شود.
در «کنسول کنشها» ، میتوانید قابلیتهای سطح برنامه «دستیار» خود را تنظیم کنید. اگر خروجی صفحه را مورد نیاز تنظیم کنید، اقدامات سفارشی شما کار نمی کنند. Google Assistant SDK در حال حاضر از قابلیت های صفحه نمایش پشتیبانی نمی کند.
مسائل کلید واژه
به نظر میرسد دستیار به جملاتی که با Ok Google یا Hey Google شروع میشوند پاسخ نمیدهد.
اگر هنوز صدای خود را تشخیص نمی دهید، حساسیت میکروفون خود را کالیبره کنید:
خاتمه (Ctrl+C) هر کد نمونه ای که در حال حاضر اجرا می شود.
دستور زیر را اجرا کنید:
export ASSISTANT_MIC_SENSITIVITY=-6
کد نمونه را اجرا کنید و دوباره امتحان کنید. به مرحله 1 برگردید، اما مقدار ASSISTANT_MIC_SENSITIVITY را در فواصل 6- کاهش دهید (به عنوان مثال، -6، -12، -18، -24...) تا زمانی که تشخیص صدا بهینه است. اگر به -60 رسیدید، میکروفون خود را بررسی کنید.
مشکلات آلارم و تایمر
دستیار از دستورات شفاهی (مثلاً توقف یا توقف تایمر) پیروی نمی کند.
اگر ویژگی StartStop یا OnOff را برای یک مدل دستگاه مشخص فعال کرده باشید، این یک مشکل است. این ویژگی را از مدل دستگاه حذف کنید و دستورات شفاهی کار خواهند کرد.
مشکلات پخش پادکست و اخبار
دستیار از دستورات پخش (مثلاً توقف یا توقف پادکست) پیروی نمی کند.
اگر ویژگی StartStop یا OnOff را برای یک مدل دستگاه مشخص فعال کرده باشید، این یک مشکل است. این ویژگی را از مدل دستگاه حذف کنید و دستورات پخش کار خواهند کرد.
مسائل پخش
دستیار نمی تواند پیام ها را از یک دستگاه به دستگاه دیگر پخش کند.
مطمئن شوید که مکان دستگاه را در برنامه Google Assistant تنظیم کرده اید. هر دو دستگاه باید آدرس یکسانی در برنامه داشته باشند.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThe Google Assistant Library for Python is deprecated; use the Google Assistant Service instead.\u003c/p\u003e\n"],["\u003cp\u003eThe library is supported only on hardware with linux-armv7l and linux-x86_64 architectures.\u003c/p\u003e\n"],["\u003cp\u003eFor credential issues, ensure the Google Assistant API is enabled and the OAuth consent screen is configured.\u003c/p\u003e\n"],["\u003cp\u003eTroubleshoot voice recognition by checking audio quality, microphone configuration, and user request transcript.\u003c/p\u003e\n"],["\u003cp\u003eFor device action issues, avoid requiring screen output in the Actions Console, as the SDK doesn't currently support it.\u003c/p\u003e\n"]]],["The Google Assistant Library for Python is deprecated; use the Google Assistant Service instead. Common issues include: virtual environment errors (install `python3-dev python3.4-venv`), hardware architecture mismatch (only `linux-armv7l` and `linux-x86_64` supported), credential errors (enable the API and OAuth), permission problems (set activity controls), voice recognition problems (check audio quality and microphone), trait issues (register traits and re-register devices), device action problems (don't require screen output), hotword issues (adjust mic sensitivity), and issues with certain traits (remove `StartStop` and `OnOff` traits).\n"],null,["# Troubleshooting the Google Assistant Library\n\n| **Warning:** The Google Assistant Library for Python is deprecated as of June 28th, 2019. Use the [Google Assistant Service](/assistant/sdk/guides/service/python) instead.\n\n\u003cbr /\u003e\n\nInstalling/upgrading the library\n--------------------------------\n\nYou get an error message similar to `E: Unable to locate package python3-venv`\nwhile trying to configure a new Python virtual environment.\n\n- On older versions of Ubuntu, the meta package for the Python 3 virtual\n environment (`python3-venv`) is not available. Use a fully-qualified version\n instead:\n\n ```\n sudo apt-get install python3-dev python3.4-venv\n ```\n\nYou get an error message similar to `No matching distribution found`\nor `\u003cwheel\u003e is not a supported wheel on this platform`.\n\n- Check the hardware architecture:\n\n ```\n uname -a\n Linux raspberrypi 4.9.24-v7+ #993 SMP Wed Apr 26 18:01:23 BST 2017 armv7l GNU/Linux\n ```\n\n \u003cbr /\u003e\n\n The library is only supported on hardware with linux-armv7l and linux-x86_64\n architectures. For other hardware, use the [Google Assistant Service](/assistant/sdk/overview#sdk_components)\n instead.\n\nCredentials issues\n------------------\n\nWhen trying to generate credentials with the authorization tool, the tool prompts\nyou to visit a URL and sign in to your Google account. The page then displays an\nerror message (for example, \"Something went wrong\").\n\n- Make sure you enabled the Google Assistant API and configured the OAuth consent screen in [Configure a Developer Project and Account Settings](/assistant/sdk/guides/library/python/embed/config-dev-project-and-account#config-dev-project).\n\nPermissions issues\n------------------\n\nThe Google Assistant responds *Actually, there are some basic settings that need\nyour permission first...*\n\n- [Set activity controls](/assistant/sdk/guides/activity-controls) for the account that you used when setting the authorization code.\n\nVoice recognition issues\n------------------------\n\nAssistant responds *I don't know how to help with that* or *I don't\nunderstand.*\n\n- Verify that your voice was recognized properly. Check the sample code output for a transcript of the user request. You can also look at [my activity](https://myactivity.google.com/myactivity?restrict=vaa). You can play the audio received by the Assistant to check for audio quality issues. If you hear excessive noise or if the audio is distorted, check that your microphone is configured properly or try a different microphone.\n\nTrait issues\n------------\n\nAssistant does not recognize a trait that you added to a model.\n\n- Make sure the trait was added to the model\n (see [Register Traits for the\n Device](/assistant/sdk/guides/library/python/extend/register-device-traits)).\n\n- If you generated a device instance for a model, the device instance will **not**\n automatically update when its model is changed by other users. You need to\n manually re-register the device instance using the [registration command line tool](/assistant/sdk/reference/device-registration/device-tool#register-device)\n or the [REST API](/assistant/sdk/reference/device-registration/register-device-manual#register-instance).\n You can find the\n [device instance ID](/assistant/sdk/guides/library/python/embed/run-sample#get-device-id)\n in the output of the sample.\n\nDevice Actions issues\n---------------------\n\nThe Google Assistant responds saying that your app is not supported on your\ndevice.\n\n- In the [Actions Console](https://console.actions.google.com/), you can set the surface capabilities of your Assistant app. If you set screen output to be required, your custom actions will not function. The Google Assistant SDK does not support screen capabilities at this time.\n\nHotword issues\n--------------\n\nAssistant does not seem to respond to sentences that begin with *Ok Google* or\n*Hey Google*.\n\n- If you still get little to no recognition of your voice, try calibrating\n your microphone sensitivity:\n\n 1. Terminate (Ctrl+C) any sample code that is currently running.\n 2. Run the following command: \n\n ```\n export ASSISTANT_MIC_SENSITIVITY=-6\n ```\n 3. Run the sample code and try again. Go back to step 1, but keep lowering the `ASSISTANT_MIC_SENSITIVITY` value in intervals of -6 (e.g., -6, -12, -18, -24...) until you find that voice recognition is optimal. If you get to -60, check your microphone.\n\nAlarms and timers issues\n------------------------\n\nThe Assistant does not follow verbal commands (for example, pausing\nor stopping a timer).\n\n- This is an issue if you have the [StartStop](/assistant/sdk/reference/traits/startstop) or [OnOff](/assistant/sdk/reference/traits/onoff) trait enabled for a given device model. Remove this trait from the device model and verbal commands will work.\n\nPodcast and news playback issues\n--------------------------------\n\nThe Assistant does not follow playback commands (for example, pausing\nor stopping a podcast).\n\n- This is an issue if you have the [StartStop](/assistant/sdk/reference/traits/startstop) or [OnOff](/assistant/sdk/reference/traits/onoff) trait enabled for a given device model. Remove this trait from the device model and playback commands will work.\n\nBroadcast issues\n----------------\n\nThe Assistant cannot broadcast messages from one device to the other.\n\n- Make sure to set the device location in the Google Assistant [app](/assistant/sdk/reference/assistant-app/assistant-settings). Both devices must have the same address in the app.\n\nSupport\n-------\n\nStill having trouble? See our [Support](/assistant/sdk/support) page."]]