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

คุณสมบัติ CSS Aural Media: รายการครบสำหรับเสียง


คุณสมบัติ Aural Media CSS ทั้งหมด

CSS Speech Module ให้คุณสมบัติครบชุดสำหรับควบคุมการนำเสนอเอกสารแบบเสียง (Aural Rendering) 主要ใช้โดย Screen Readers

ตารางคุณสมบัติครบ 18 รายการ

คุณสมบัติหมวดหมู่คำอธิบายสั้น
azimuth3D Positionตำแหน่งเสียงแนวนอน (ซ้าย-ขวา)
elevation3D Positionตำแหน่งเสียงแนวตั้ง (บน-ล่าง)
cue-afterTimingเสียงหลังอ่านเนื้อหา
cue-beforeTimingเสียงก่อนอ่านเนื้อหา
cueTimingShorthand ของ cue-before + cue-after
pause-afterTimingเวลาหน่วงหลังอ่าน
pause-beforeTimingเวลาหน่วงก่อนอ่าน
pauseTimingShorthand ของ pause-before + pause-after
pitchVoice Qualityความถี่เฉลี่ยของเสียงพูด
pitch-rangeVoice Qualityความหลากหลายของความถี่ (intonation)
play-duringTimingเสียงพื้นหลังขณะอ่าน
richnessVoice Qualityความอุดมสมบูรณ์/ความสว่างของเสียง
speakSpeech Controlอ่านไหม/อ่านอย่างไร (none/normal/spell-out)
speak-numeralSpeech Controlอ่านตัวเลขอย่างไร (digits/continuous)
speak-punctuationSpeech Controlอ่านเครื่องหมายวรรคตอนไหม
speech-rateSpeech Controlความเร็วการพูด (คำ/นาที)
stressVoice Qualityความเครียด/เน้นของเสียง (local peaks)
voice-familyVoice Qualityรายชื่อเสียงที่ต้องการ (priority list)
volumeVolumeระดับเสียงกลาง (0-100, silent, keywords)

การจัดกลุ่มตามหน้าที่

ตำแหน่งเสียง 3D (Spatial)

  • azimuth: -360deg ถึง 360deg, left-side, right-side, center, behind, etc.
  • elevation: -90deg ถึง 90deg, below, level, above, higher, lower

เวลาและสัญญาณ (Temporal)

  • pause-before, pause-after, pause: เวลาหน่วง (time/percentage)
  • cue-before, cue-after, cue: ไฟล์เสียงสัญญาณ (url/none)
  • play-during: เสียงพื้นหลัง (uri, mix, repeat, auto, none)

คุณภาพเสียง (Voice Quality)

  • pitch: frequency (x-low, low, medium, high, x-high, Hertz)
  • pitch-range: ความหลากหลาย (0-100%)
  • richness: ความอุดมสมบูรณ์ (0-100%)
  • stress: ความเครียด/เน้น (0-100%)
  • voice-family: รายชื่อเสียง (specific voices, generic families)

การควบคุมการพูด (Speech Control)

  • speech-rate: ความเร็ว (keywords, number, faster/slower)
  • speak: none, normal, spell-out
  • speak-numeral: digits, continuous
  • speak-punctuation: code, none

ระดับเสียง (Volume)

  • volume: 0-100, %, silent, x-soft...x-loud

ตัวอย่างชุดครบ

.article {
  / 3D Position /
  azimuth: center;
  elevation: level;
  
  / Timing /
  pause: 200ms 400ms;
  cue: url("start.wav") url("end.wav");
  play-during: url("bg-music.wav") mix repeat;
  
  / Voice /
  voice-family: "Thai Female", "Thai Male", generic;
  pitch: medium;
  pitch-range: 50%;
  richness: 50%;
  stress: 50%;
  
  / Speech /
  speech-rate: medium;
  speak: normal;
  speak-numeral: continuous;
  speak-punctuation: none;
  
  / Volume /
  volume: medium;
}