تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
تظهر الردود البسيطة على شكل فقاعة محادثة بشكل مرئي وتستخدم ميزة تحويل النص إلى كلام.
(TTS) أو لغة ترميز تركيب الكلام (SSML) للصوت باستخدام فيديو Shorts
ردود بسيطة في المحادثة، يمكنك الحفاظ على تفاعل المستخدمين من خلال عرض مرئي
وواجهة صوتية يمكن إقرانها بعناصر حوارية أخرى.
يجب أن يكون محتوى المحادثة في رد بسيط مجموعة فرعية صوتية أو مجموعة كاملة
نص إخراج TTS/SSML. يساعد ذلك المستخدمين في تحديد نوع الإجراء
يقول ويزيد من الفهم في ظروف مختلفة.
النص الذي تُدخله في العنصرَين first_simple وlast_simple في طلب
وتستخدم خصائص الإجابة البسيطة. يرسل "مساعد Google" جميع البيانات البسيطة
الردود في طلب، ثم يرسل الرد المنسّق النهائي في قائمة انتظار الطلبات.
أماكن إقامة
يتميز نوع الاستجابة البسيط بالخصائص التالية:
الموقع
النوع
المطلوب للحصول على الشارة
الوصف
speech
سلسلة
اختياري
يمثل الكلمات التي سيتم قولها للمستخدم في SSML أو تحويل النص إلى كلام.
إذا كان الحقل override في الطلب الذي يتضمّن القيمة "true"،
ثم يحل الكلام المحدد في هذا الحقل محل الكلام البسيط السابق
خطاب المطالبة.
text
سلسلة
اختياري
النص الذي سيتم عرضه في فقاعة المحادثة. السلاسل التي يزيد طولها عن 640 حرفًا
يتم اقتطاعها عند أول فاصل كلمات (أو مسافة بيضاء) قبل الرقم 640
الأحرف. ننصحك باستخدام أقل من 300 حرف لمنع
المحتوى من تجاوز الشاشة، خاصةً عند إقرانها
بطاقة أو عنصر مرئي آخر.
وفي حال عدم توفير هذه الميزة، سيعرض "مساعد Google" نسخة معروضة من
الحقل speech بدلاً من ذلك. إذا كان الحقل override في
المطالبة التي تحتوي على هذا هي "false"، فإن النص المحدد في هذا الحقل
بنص المطالبة البسيطة السابقة.
نموذج التعليمات البرمجية
YAML
candidates:-first_simple:variants:-speech:This is the first simple response.text:This is the 1st simple response.last_simple:variants:-speech:This is the last simple response.text:This is the last simple response.
JSON
{"candidates":[{"first_simple":{"variants":[{"speech":"This is the first simple response.","text":"This is the 1st simple response."}]},"last_simple":{"variants":[{"speech":"This is the last simple response.","text":"This is the last simple response."}]}}]}
Node.js
app.handle('Simple',conv=>{conv.add(newSimple({speech:'This is the first simple response.',text:'This is the 1st simple response.'}));conv.add(newSimple({speech:'This is the last simple response.',text:'This is the last simple response.'}));});
JSON
{"responseJson":{"session":{"id":"session_id","params":{}},"prompt":{"override":false,"firstSimple":{"speech":"This is the first simple response.","text":"This is the 1st simple response."},"lastSimple":{"speech":"This is the last simple response.","text":"This is the last simple response."}}}}
SSML والأصوات
استخدم SSML والأصوات في ردودك لجعلها أكثر تنقيحًا
تجربة المستخدم. راجِع وثائق SSML للحصول على مزيد من المعلومات.
مكتبة الأصوات
نحن نوفر مجموعة متنوعة من الأصوات المجانية القصيرة في مكتبة الملفات الصوتية. هذه
تتم استضافة الأصوات من أجلك، لذا كل ما عليك فعله هو تضمينها في SSML.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eSimple responses use chat bubbles with text-to-speech or SSML for audio, keeping users engaged with a clear interface.\u003c/p\u003e\n"],["\u003cp\u003eChat bubble content should be a phonetic subset or a complete transcript of the audio output for better user comprehension.\u003c/p\u003e\n"],["\u003cp\u003eSimple responses are sent before the final rich response, and some surfaces may only display the rich response.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003espeech\u003c/code\u003e property defines what the Assistant says, while the \u003ccode\u003etext\u003c/code\u003e property defines what's displayed in the chat bubble.\u003c/p\u003e\n"],["\u003cp\u003eSSML and sounds can be used to enhance simple responses, with a sound library available for use.\u003c/p\u003e\n"]]],[],null,["# Simple responses take the form of a chat bubble visually and use text-to-speech\n(TTS) or Speech Synthesis Markup Language (SSML) for sound. By using short\nsimple responses in conversation, you can keep users engaged with a clear visual\nand audio interface that can be paired with other conversational elements.\n\nChat bubble content in a simple response must be a phonetic subset or a complete\ntranscript of the TTS/SSML output. This helps users map out what your Action\nsays and increases comprehension in various conditions.\n\nIn a prompt, text you provide in the `first_simple` and `last_simple` objects\nuse the properties of a simple response. Google Assistant sends all simple\nresponses in a prompt, then sends the final rich response in the prompt queue.\n| **Note:** Some surfaces (like smart displays) only display one piece of content at a time instead of using the chat bubble format. As a result, only the rich response appears when you provide both a simple and a rich response.\n\nProperties\n----------\n\nThe simple response type has the following properties:\n\n| Property | Type | Requirement | Description |\n|----------|--------|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `speech` | string | Optional | Represents the words to be spoken to the user in SSML or text-to-speech. If the `override` field in the containing prompt is \"true\", then speech defined in this field replaces the previous simple prompt's speech. |\n| `text` | string | Optional | Text to display in the chat bubble. Strings longer than 640 characters are truncated at the first word break (or whitespace) before 640 characters. We recommend using less than 300 characters to prevent content from extending past the screen, especially when paired with a card or other visual element. If not provided, Assistant renders a display version of the `speech` field instead. If the `override` field in the containing prompt is \"false\", then text defined in this field is appended to the previous simple prompt's text. |\n\nSample code\n-----------\n\n### YAML\n\n```yaml\ncandidates:\n - first_simple:\n variants:\n - speech: This is the first simple response.\n text: This is the 1st simple response.\n last_simple:\n variants:\n - speech: This is the last simple response.\n text: This is the last simple response.\n```\n\n### JSON\n\n```gdscript\n{\n \"candidates\": [\n {\n \"first_simple\": {\n \"variants\": [\n {\n \"speech\": \"This is the first simple response.\",\n \"text\": \"This is the 1st simple response.\"\n }\n ]\n },\n \"last_simple\": {\n \"variants\": [\n {\n \"speech\": \"This is the last simple response.\",\n \"text\": \"This is the last simple response.\"\n }\n ]\n }\n }\n ]\n}\n```\n\n### Node.js\n\n```javascript\napp.handle('Simple', conv =\u003e {\n conv.add(new Simple({\n speech: 'This is the first simple response.',\n text: 'This is the 1st simple response.'\n }));\n conv.add(new Simple({\n speech: 'This is the last simple response.',\n text: 'This is the last simple response.'\n }));\n});\n```\n\n### JSON\n\n```carbon\n{\n \"responseJson\": {\n \"session\": {\n \"id\": \"session_id\",\n \"params\": {}\n },\n \"prompt\": {\n \"override\": false,\n \"firstSimple\": {\n \"speech\": \"This is the first simple response.\",\n \"text\": \"This is the 1st simple response.\"\n },\n \"lastSimple\": {\n \"speech\": \"This is the last simple response.\",\n \"text\": \"This is the last simple response.\"\n }\n }\n }\n}\n```\n\nSSML and sounds\n---------------\n\nUse SSML and sounds in your responses to give them more polish and enhance the\nuser experience. See the [SSML documentation](/assistant/conversational/ssml) for more information.\n\nSound library\n-------------\n\nWe provide a variety of free, short sounds in our [sound library](/assistant/tools/sound-library). These\nsounds are hosted for you, so all you need to do is include them in your SSML."]]