Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> CSS

คุณสมบัติ CSS voice-rate สำหรับ Speech Media

คุณสมบัติ voice-rate ใน CSS Speech Module ใช้กำหนดอัตราการพูด (speaking rate) ในหน่วยคำต่อนาที (words per minute)

รูปแบบไวยากรณ์

voice-rate: [normal | x-slow | slow | medium | fast | x-fast] | <percentage>

ตัวอย่าง

/* ใช้ keyword */
p { voice-rate: x-fast; }  /* พูดเร็วมาก */

/* ใช้เปอร์เซ็นต์ (สัมพัทธ์กับค่า normal) */
p { voice-rate: 40%; }     /* พูดช้า 40% ของปกติ */
p { voice-rate: 150%; }    /* พูดเร็ว 150% ของปกติ */

คำอธิบายค่า Keywords:

  • x-slow: ช้ามาก
  • slow: ช้า
  • medium: ปานกลาง
  • fast: เร็ว
  • x-fast: เร็วมาก
  • normal: ค่าเริ่มต้น (ขึ้นอยู่กับภาษาและ voice)

การประยุกต์: ใช้ slow สำหรับเนื้อหาที่ยาก/สำคัญ, fast สำหรับ disclaimer, terms & conditions, x-fast สำหรับ "speed reading" mode

สถานะ: CSS Speech Module - รองรับใน screen readers บางตัว