Computer >> Computer tutorials >  >> Programming >> CSS

CSS voice-family Property


The value is a comma-separated, prioritized list of voice family names. It can have following values

  • generic-voice − Values are voice families. Possible values are 'male', 'female', and 'child'.
  • specific-voice − Values are specific instances (e.g., comedian, trinoids, carlos, lani).

Example

You can try the following code to implement voice-family property −

<style>
   <!--
      h1 { voice-family: announcer, male }
      p.part.romeo { voice-family: romeo, male }
      p.part.juliet { voice-family: juliet, female }
   -->
</style>