Skip to content

Commit

Permalink
Merge pull request #30 from NdunguMaina/version2.0
Browse files Browse the repository at this point in the history
version2.0
  • Loading branch information
Gichuki-aleki authored Oct 30, 2024
2 parents 078cac8 + 104f670 commit 08fed47
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 3 deletions.
Binary file added phonics/a.aac
Binary file not shown.
Binary file added phonics/b.aac
Binary file not shown.
Binary file added phonics/c.aac
Binary file not shown.
Binary file added phonics/ck.aac
Binary file not shown.
Binary file added phonics/d.aac
Binary file not shown.
Binary file added phonics/e.aac
Binary file not shown.
Binary file added phonics/f.aac
Binary file not shown.
Binary file added phonics/g.aac
Binary file not shown.
Binary file added phonics/i.aac
Binary file not shown.
Binary file added phonics/k.aac
Binary file not shown.
Binary file added phonics/o.aac
Binary file not shown.
Binary file added phonics/u.aac
Binary file not shown.
6 changes: 3 additions & 3 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ function updateCardContent(card, array, index) {
function voiceCard(card) {
const letter = card.getAttribute('data-letter');

// Construct the path to the corresponding MP3 file
const audioPath = `./phonics/${letter}.mp3`;
// Construct the path to the corresponding aac file
const audioPath = `./phonics/${letter}.aac`;

// Create a new Audio object and play the MP3 file
// Create a new Audio object and play the aac file
const audio = new Audio(audioPath);
audio.play();
}
Expand Down

0 comments on commit 08fed47

Please sign in to comment.