대화형 작업이 2023년 6월 13일에 지원 중단되었습니다. 자세한 내용은
대화 작업 지원 중단을 참고하세요.
샘플 코드 실행
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
이제 샘플을 실행하고 쿼리를 만들 준비가 되었습니다.
실행 시 다음 안내를 따르세요.
googlesamples-assistant-pushtotalk --project-id my-dev-project --device-model-id my-model
Enter 키를 누르고 다음 검색어를 입력해 보세요.
- 나는 누구인가?
- 지금이 몇 시인가요?
- 샌프란시스코 날씨는 어때?
어시스턴트가 응답하지 않으면 문제 해결 안내를 따르세요.
Google 어시스턴트 언어를 변경하거나 개인 검색 결과를 사용 설정하려면 다음 단계를 따르세요.
Google 어시스턴트 앱을 사용해야 합니다.
기기 인스턴스 ID 찾기
샘플을 처음 실행하면 해당 프로젝트를 위한 기기 인스턴스가
지정할 수 있습니다. 이 기기 인스턴스가 기기 모델과 연결됩니다.
샘플 실행을 위해 지정한 샘플입니다 인스턴스를 직접 만들 수도 있습니다.
등록 도구를 사용하여 계정을 등록할 수 있습니다.
이 샘플은 모델과 인스턴스 ID를 모두 저장합니다. 인코더-디코더 아키텍처를
이를 인수로 사용하면 저장된 ID가 기본적으로 사용됩니다.
샘플의 출력에서 기기 인스턴스 ID를 찾습니다.
INFO:root:Connecting to embeddedassistant.googleapis.com
WARNING:root:Device config not found: [Errno 2] No such file or directory: '/home/pi/.config/googlesamples-assistant/device_config.json'
INFO:root:Registering device
INFO:root:Device registered: 0eea18ae-d17e-11e7-ac7a-b827ebb8010f # Device instance ID
Press Enter to send a new request...
다음 단계
이제 기기에서 Google 어시스턴트를 사용할 수 있습니다.
확장할 수 있습니다 여기에서 가능한 다음 단계를 살펴보세요.
또는 계속해서 기기 작업 만들기를 진행합니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-09-07(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2024-09-07(UTC)"],[[["Run the provided command, replacing placeholders with your project and model IDs, to initiate a sample query."],["Test the setup with example queries like \"Who am I?\", \"What time is it?\", or weather-related questions."],["Locate the device instance ID within the sample's output for future use and potential troubleshooting."],["Refer to provided resources for troubleshooting, language settings, and next steps in extending device functionality."]]],["To run the sample, replace placeholders in the provided command with your Google Cloud project ID and model name. Execute the command and try example queries. If no response, consult troubleshooting. The first run generates a unique device instance ID, displayed in the output, and saves it for future use. The command can be run without arguments if the ID was saved. You can change the language or add personal settings through the Google Assistant app. Further steps like extending or adding device actions are possible.\n"]]