{"id":20082398,"url":"https://github.com/googlesamples/assistant-sdk-cpp","last_synced_at":"2025-10-11T03:54:44.630Z","repository":{"id":56146006,"uuid":"100986645","full_name":"googlesamples/assistant-sdk-cpp","owner":"googlesamples","description":"Example of Google Assistant gRPC in C++","archived":false,"fork":false,"pushed_at":"2020-11-24T11:21:14.000Z","size":276,"stargazers_count":97,"open_issues_count":26,"forks_count":44,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-07-30T06:40:16.704Z","etag":null,"topics":["cpp","google-assistant-api"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/googlesamples.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-21T19:44:53.000Z","updated_at":"2025-03-07T07:15:28.000Z","dependencies_parsed_at":"2022-08-15T13:31:25.774Z","dependency_job_id":null,"html_url":"https://github.com/googlesamples/assistant-sdk-cpp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/googlesamples/assistant-sdk-cpp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Fassistant-sdk-cpp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Fassistant-sdk-cpp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Fassistant-sdk-cpp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Fassistant-sdk-cpp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/googlesamples","download_url":"https://codeload.github.com/googlesamples/assistant-sdk-cpp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/googlesamples%2Fassistant-sdk-cpp/sbom","scorecard":{"id":440983,"data":{"date":"2025-08-11","repo":{"name":"github.com/googlesamples/assistant-sdk-cpp","commit":"730350feed52032a7f456ed36bc1bc878b2a611d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":2,"reason":"Found 7/30 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 7 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T05:34:25.732Z","repository_id":56146006,"created_at":"2025-08-19T05:34:25.732Z","updated_at":"2025-08-19T05:34:25.732Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279006109,"owners_count":26084026,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","google-assistant-api"],"created_at":"2024-11-13T15:43:15.414Z","updated_at":"2025-10-11T03:54:44.606Z","avatar_url":"https://github.com/googlesamples.png","language":"C++","readme":"# Google Assistant SDK for devices - C++\n\n## Requirements\n\nThis project is officially supported on Ubuntu 14.04. Other Linux distributions may be able to run\nthis sample.\n\nRefer to the [Assistant SDK documentation](https://developers.google.com/assistant/sdk/) for more information.\n\n## Setup instructions\n\n### Clean Project\n\n_If you have not setup this project before, you can skip this step._\n\n```\nsudo apt-get purge libc-ares-dev  # https://github.com/grpc/grpc/pull/10706#issuecomment-302775038\nsudo apt-get purge libprotobuf-dev libprotoc-dev\nsudo rm -rf /usr/local/bin/grpc_* /usr/local/bin/protoc \\\n    /usr/local/include/google/protobuf/ /usr/local/include/grpc/ /usr/local/include/grpc++/ \\\n    /usr/local/lib/libproto* /usr/local/lib/libgpr* /usr/local/lib/libgrpc* \\\n    /usr/local/lib/pkgconfig/protobuf* /usr/local/lib/pkgconfig/grpc* \\\n    /usr/local/share/grpc/\n```\n\n### Build Project\n\n1. Clone this project\n```\ngit clone https://github.com/googlesamples/assistant-sdk-cpp.git\ncd assistant-sdk-cpp\nexport PROJECT_PATH=$(pwd)\n```\n\n2. Install dependencies\n```\nsudo apt-get install autoconf automake libtool build-essential curl unzip pkg-config\nsudo apt-get install libasound2-dev  # For ALSA sound output\nsudo apt-get install libcurl4-openssl-dev # CURL development library\n```\n\n3. Build Protocol Buffer, gRPC, and Google APIs\n```\ngit clone -b $(curl -L https://grpc.io/release) https://github.com/grpc/grpc\nGRPC_PATH=${PROJECT_PATH}/grpc\ncd ${GRPC_PATH}\n\ngit submodule update --init\n\ncd third_party/protobuf\n./autogen.sh \u0026\u0026 ./configure \u0026\u0026 make\nsudo make install\nsudo ldconfig\n\nexport LDFLAGS=\"$LDFLAGS -lm\"\ncd ${GRPC_PATH}\nmake clean\nmake\nsudo make install\nsudo ldconfig\n\ncd ${PROJECT_PATH}\ngit clone https://github.com/googleapis/googleapis.git\ncd googleapis/\ngit checkout 980cdfa\nmake LANGUAGE=cpp\n```\n\n4. Make sure you setup environment variable `$GOOGLEAPIS_GENS_PATH`\n```\nexport GOOGLEAPIS_GENS_PATH=${PROJECT_PATH}/googleapis/gens\n```\n\n5. Build this project\n```\ncd ${PROJECT_PATH}\nmake run_assistant\n```\n\n6. Get credentials file. It must be an end-user's credentials.\n\n* Go to the [Actions Console](https://console.actions.google.com/) and register your device model, following [these instructions](https://developers.google.com/assistant/sdk/guides/library/python/embed/register-device)\n* Move it in this folder and rename it to `client_secret.json`\n* run `get_credentials.sh` in this folder. It will create the file `credentials.json`.\n\n7. Start one of the `run_assistant` samples:\n\n```bash\n./run_assistant_file --input ./resources/weather_in_mountain_view.raw --output ./response.wav --credentials ./credentials.json\naplay ./response.wav --rate=16000 --format=S16_LE\n```\n\nOn a Linux workstation, you can alternatively use ALSA for audio input:\n\n```bash\n./run_assistant_audio --credentials ./credentials.json\n```\n\nYou can use a text-based query instead of audio. This allows you to continually enter text queries to the Assistant.\n\n```bash\n./run_assistant_text --credentials ./credentials.json\n```\n\nThis takes input from `cin`, so you can send data to the program when it starts.\n\n```bash\necho \"what time is it\" | ./run_assistant_text --credentials ./credentials.json\n```\n\nTo change the locale, include a `locale` parameter:\n\n```bash\necho \"Bonjour\" | ./run_assistant_text --credentials ./credentials.json --locale \"fr-FR\"\n```\n\nDefault Assistant gRPC API endpoint is `embeddedassistant.googleapis.com`. If you want to test with a custom Assistant gRPC API endpoint, you can pass `--api_endpoint CUSTOM_API_ENDPOINT`.\n\n## Enabling screen output\n\nTo get a visual output from the Assistant, provide a command to be run alongside every step of the conversation. It will execute that command along along with a provided argument of a temporary HTML file.\n\n```bash\necho \"what time is it\" | ./run_assistant_text --credentials ./credentials.json --html_out google-chrome\n```\n\nAfter you enter text, it will run `google-chrome /tmp/google-assistant-cpp-screen-out.html`.\n\nIf you prefer a different program, use that argument instead.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglesamples%2Fassistant-sdk-cpp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgooglesamples%2Fassistant-sdk-cpp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgooglesamples%2Fassistant-sdk-cpp/lists"}