Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make text a hotlink to play audio text-to-speech #5

Open
willemlarsen opened this issue Sep 29, 2014 · 1 comment
Open

Make text a hotlink to play audio text-to-speech #5

willemlarsen opened this issue Sep 29, 2014 · 1 comment

Comments

@willemlarsen
Copy link
Owner

No description provided.

@zhon
Copy link
Collaborator

zhon commented Oct 29, 2014

Example code of how to play audio:

  <p><strong>{{square.type}}</strong></p>
  <ul  ng-repeat="interaction in square.interactions">
    <li class="lead">
      <audio controls>
        <source ng-src="{{audio_path('assets/irish/conemara/', interaction.question.audiofile)}}" type="audio/mp3"/>
        </audio>
      {{interaction.question.text}}
      </li>
    <li class="lead">
          <audio controls>
        <source ng-src="{{audio_path('assets/irish/conemara/', interaction.answer.audiofile)}}" type="audio/mp3"/>
        </audio>
      {{interaction.answer.text}}
    </li>
  </ul>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants