📄 النص الكامل للصفحة
--- SECTION: شكل 4.12 ---
شكل 4.12: برمجة وظيفة تحويل النص إلى كلام
--- SECTION: Footer Information ---
وزارة التعليم
Ministry of Education
213
2023 - 1447
--- VISUAL CONTEXT ---
**DIAGRAM**: MIT App Inventor Blocks Editor - Text Blocks
Description: A screenshot of the MIT App Inventor blocks editor. The left sidebar shows categories like 'Built-in' (Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures) and specific component blocks (discover_label, VerticalArrangement1, title_label, image, description_label, HorizontalArrangement1). The main workspace displays various text manipulation blocks: 'join', 'length', 'is empty', 'compare texts' (with operators '<', '=', '>'), 'trim', 'upcase', and 'starts at text'. The project name is 'Visit_SA_App'.
Table Structure:
Headers: N/A
X-axis: EMPTY
Y-axis: EMPTY
Data: EMPTY
Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, Visit_SA_App, Blocks, Viewer, Built-in, Control, Logic, Math, Text, Lists, Dictionaries, Colors, Variables, Procedures, discover_label, VerticalArrangement1, title_label, image, description_label, HorizontalArrangement1, Rename, Delete, join, length, is empty, compare texts, trim, upcase, starts at text
Context: Illustrates the range of text processing blocks available in MIT App Inventor for app development.
**DIAGRAM**: Text-to-Speech Block Configuration 3
Description: A code snippet from MIT App Inventor, labeled with the number 3. It shows a 'when text_to_speech_button .Click' event block. Inside the 'do' section, a 'call text_to_speech .Speak' block is present. The 'message' input of the 'Speak' block is connected to a 'join' block. A separate pink box visually explains the 'join' block, showing it can accept multiple 'string' inputs (three are depicted).
Table Structure:
Headers: N/A
X-axis: EMPTY
Y-axis: EMPTY
Data: EMPTY
Key Values: when text_to_speech_button .Click, do call text_to_speech .Speak, message, join, string, 3
Context: Demonstrates how to initiate text-to-speech functionality upon a button click and construct a message by joining multiple string components.
**DIAGRAM**: MIT App Inventor Blocks Editor - Component Properties
Description: A screenshot of the MIT App Inventor blocks editor, similar to the first, but focusing on the properties of a 'discover_label' component. The main workspace displays various getter and setter blocks for 'discover_label' properties: 'discover_label .Height', 'set discover_label .Height to', 'set discover_label .HeightPercent to', 'discover_label .Text', 'set discover_label .Text to', 'discover_label .TextColor', 'set discover_label .TextColor to', and 'discover_label .Visible'. The project name is 'Visit_SA_App'.
Table Structure:
Headers: N/A
X-axis: EMPTY
Y-axis: EMPTY
Data: EMPTY
Key Values: MIT APP INVENTOR, Projects, Connect, Build, Settings, Help, Visit_SA_App, Blocks, Viewer, Built-in, discover_label, VerticalArrangement1, title_label, image, description_label, HorizontalArrangement1, Rename, Delete, discover_label .Height, set discover_label .Height to, set discover_label .HeightPercent to, discover_label .Text, set discover_label .Text to, discover_label .TextColor, set discover_label .TextColor to, discover_label .Visible
Context: Illustrates how to access and modify various properties of a user interface label component in MIT App Inventor.
**DIAGRAM**: Text-to-Speech Block Configuration 4
Description: A code snippet from MIT App Inventor, labeled with the number 4. It shows a 'when text_to_speech_button .Click' event block. Inside the 'do' section, a 'call text_to_speech .Speak' block is present. The 'message' input of the 'Speak' block is connected to a 'join' block, which in turn is connected to a 'discover_label .Text' block, indicating that the text from 'discover_label' will be spoken.
Table Structure:
Headers: N/A
X-axis: EMPTY
Y-axis: EMPTY
Data: EMPTY
Key Values: when text_to_speech_button .Click, do call text_to_speech .Speak, message, join, discover_label .Text, 4
Context: Demonstrates how to use the text content of a specific UI label component ('discover_label') as the input for the text-to-speech function.
**DIAGRAM**: Text-to-Speech Block Configuration 5
Description: A code snippet from MIT App Inventor, labeled with the number 5. It shows a 'when text_to_speech_button .Click' event block. Inside the 'do' section, a 'call text_to_speech .Speak' block is present. The 'message' input of the 'Speak' block is connected to a 'join' block, which combines the text content from three different label components: 'discover_label .Text', 'title_label .Text', and 'description_label .Text'. This indicates that the combined text from these three labels will be spoken.
Table Structure:
Headers: N/A
X-axis: EMPTY
Y-axis: EMPTY
Data: EMPTY
Key Values: when text_to_speech_button .Click, do call text_to_speech .Speak, message, join, discover_label .Text, title_label .Text, description_label .Text, 5
Context: Illustrates a more complex use of the text-to-speech function, where the message is dynamically constructed by concatenating text from multiple user interface labels.