사운드 라이브러리에는 사용자 환경을 개선하고 작업 방식을 개선하는 데 사용할 수 있는 분류된 사운드가 포함되어 있습니다. 이러한 사운드는 Google에서 자동으로 호스팅되므로 SSML을 사용할 때 <audio> 요소의 src 속성에서 사운드를 참조하기만 하면 됩니다.
다음 코드 스니펫은 Node.js 클라이언트 라이브러리에서 이러한 사운드를 사용하는 방법을 보여줍니다.
Node.js
function playAudio(conv) {
let text_to_speech = '<speak>'
+ 'I can play a sound'
+ '<audio src="https://actions.google.com/sounds/v1/alarms/digital_watch_alarm_long.ogg">a digital watch alarm</audio>. '
+ '</speak>'
conv.add(text_to_speech);
};
행을 선택하여 자세한 내용을 확인하고 사운드 클립을 듣거나 카탈로그에서 사운드를 검색하세요.
이용약관
이 보관함의 음악 파일을 포함하여 이 사운드 라이브러리를 사용하는 경우 Actions on Google 서비스 약관이 적용됩니다. 이 라이브러리의 사운드와 음악은 내가 만든 작업에서 내가 단독으로 사용합니다.
이 보관함의 음악을 다운로드하면 다음을 하지 않겠다고 동의하는 것입니다.
Actions on Google을 비롯한 Google 플랫폼에서 이러한 사운드 및 음악 파일을 통합한 작업과 별도로 이 라이브러리의 사운드 및 음악 파일을 제공, 배포 또는 실행하는 행위 (예: 이러한 파일의 단독 배포 또는 Google 이외의 플랫폼에서의 사용은 허용되지 않음)
이 라이브러리의 사운드 및 음악 파일을 불법적인 방법으로 사용하거나 불법 콘텐츠와 관련하여 사용하는 행위
[null,null,["최종 업데이트: 2023-05-16(UTC)"],[],[],null,["# Sound Library\n\nThe sound library contains categorized sounds that you can use to enhance the\nuser experience and increase the polish of your actions. Google hosts these\nsounds for you, so all you need to do is reference them in the `src` attribute\nof an `\u003caudio\u003e` element when using [SSML](/assistant/conversational/ssml).\n\nThe following code snippet shows you how to use these sounds with the Node.js\nclient library: \n\n### Node.js\n\n```javascript\nfunction playAudio(conv) {\n let text_to_speech = '\u003cspeak\u003e'\n + 'I can play a sound'\n + '\u003caudio src=\"https://actions.google.com/sounds/v1/alarms/digital_watch_alarm_long.ogg\"\u003ea digital watch alarm\u003c/audio\u003e. '\n + '\u003c/speak\u003e'\n conv.add(text_to_speech);\n};\n```\n| **Note:** You can also search and listen to these sound effects in the [YouTube Audio Library](https://www.youtube.com/audiolibrary/soundeffects). The sounds here are hosted here for you, so you can reference their locations directly in your app.\n\nSelect a row for more details and to hear the sound clip, or search for sounds\nin the catalog \n\nTerms and Conditions\n--------------------\n\nYour use of this sound library (including the music files in this library) is\nsubject to the [Actions on Google Terms of Service](https://developers.google.com/terms/). Sounds and music\nfrom this library are intended solely for use by you in Actions that you create.\n\nBy downloading music from this library, you agree that you will not:\n\n- Make available, distribute or perform the sound and music files from this library separately from Actions into which you have incorporated these sound and music files, on Google platforms including Actions on Google (e.g. standalone distribution of these files, or use on non-Google platforms, is not permitted).\n- Use the sound and music files from this library in an illegal manner or in connection with any illegal content."]]