Skip to content

Commit 2012d31

Browse files
authored
docs: removing audio (#56)
* Update README.md * removing audio
1 parent 9b10c0f commit 2012d31

File tree

12 files changed

+24
-18
lines changed

12 files changed

+24
-18
lines changed

Diff for: app/README.md

+15-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ In `characters.json`, there's a `description` property that will be used as a sy
2828
> [!IMPORTANT]
2929
> DISCLAIMER: This repository contains fictional content generated by AI. The historical characters depicted here are speaking back thanks to generative AI, which is based on training data. Any utterances made by these characters do not represent their actual views or quotes. This content is intended solely for entertainment purposes. [Microsoft Responsible AI principles here](https://www.microsoft.com/en-us/ai/principles-and-approach/)
3030
31-
## Credits
31+
## Adding audio
3232

33-
- <https://pixabay.com/> on their free to use music.
33+
- Adding background audio, download the music (make sure it's royalty free). Place it in the `public/audio` folder and name it according to the `name` field in `characters.json`, for example "davinci.mp3".
34+
- Locate the `TODO` comment in `index.html` and uncomment the rows regarding playing background audio, should look something like so:
35+
36+
```javascript
37+
/*
38+
TODO: undo this comment once you've downloaded background music corresponding to your character
39+
see characters.json name field what to name a file, for example davinci.mp3
40+
*/
41+
// backgroundAudio.src = `/audio/${character.name}.mp3`; // Updated to use character.name
42+
// backgroundAudio.volume = maxVolume;
43+
44+
45+
// backgroundAudio.play();
46+
```

Diff for: app/public/audio/ada.mp3

-7.32 MB
Binary file not shown.

Diff for: app/public/audio/davinci.mp3

-7.04 MB
Binary file not shown.

Diff for: app/public/audio/dinocrates.mp3

-5.68 MB
Binary file not shown.

Diff for: app/public/audio/montezuma.mp3

-4.2 MB
Binary file not shown.

Diff for: app/public/audio/sforza.mp3

-3.03 MB
Binary file not shown.

Diff for: app/public/index.html

+9-3
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,15 @@ <h2 id="cardTitle"></h2>
248248
}, isInitial ? 0 : 2000);
249249

250250
try {
251-
backgroundAudio.src = `/audio/${character.name}.mp3`; // Updated to use character.name
252-
backgroundAudio.volume = maxVolume;
253-
backgroundAudio.play();
251+
/*
252+
TODO: undo this comment once you've downloaded background music corresponding to your character
253+
see characters.json name field what to name a file, for example davinci.mp3
254+
*/
255+
// backgroundAudio.src = `/audio/${character.name}.mp3`; // Updated to use character.name
256+
// backgroundAudio.volume = maxVolume;
257+
258+
259+
// backgroundAudio.play();
254260
} catch (error) {
255261
console.error("Error playing audio:", error);
256262
}

Diff for: lessons/01-intro-to-genai/README.md

-4
Original file line numberDiff line numberDiff line change
@@ -228,10 +228,6 @@ Here's a step-by-step summary of what the function does:
228228
229229
> **Note**: [GitHub Copilot](https://github.com/features/copilot) was used to generate this code summary. Generative AI in action!
230230
231-
If you also want to hear some background music of what it could have sounded like in Alexandria, you can listen to the background music below:
232-
233-
<audio controls src="/app/public/audio/dinocrates.mp3" title="background music Dinocrates"></audio>
234-
235231
### What Can Generative AI Do for Me and My Apps?
236232
237233
> [!NOTE]

Diff for: lessons/02-first-ai-app/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,6 @@ For a more detailed explanation of the app, see [Detailed app explanation](../01
142142

143143
If you also want to hear some background music of what it could have sounded like in Florence, you can listen to the background music below:
144144

145-
<audio controls src="/app/public/audio/leonardo.mp3" title="background music Leonardo"></audio>
146-
147145
## Development Environment Setup
148146

149147
Before you can help Leonardo with his project you need to consider the “tools of the trade” that you need to get started with helping him.

Diff for: lessons/03-prompt-engineering/README.md

-3
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ For a more detailed explanation of the app, see [Detailed app explanation](../01
128128

129129
If you also want to hear some background music of what it could have sounded like, you can listen to the background music below:
130130

131-
<audio controls src="/app/public/audio/sforza.mp3" title="background music Sforza"></audio>
132-
133-
134131
## What is prompt engineering
135132

136133
**Time beetle:** We need to talk about prompt engineering.

Diff for: lessons/04-structured-output/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ For a more detailed explanation of the app, see [Detailed app explanation](../01
155155

156156
If you also want to hear some background music of what it could have sounded like, you can listen to the background music below:
157157

158-
<audio controls src="/app/public/audio/montezuma.mp3" title="background music Montezuma"></audio>
159-
160158
## Structured Output
161159

162160
**Time beetle:** Hey folks, want to know how I beat Montezuma?

Diff for: lessons/05-rag/README.md

-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ For a more detailed explanation of the app, see [Detailed app explanation](../01
9696

9797
If you also want to hear some background music of what it could have sounded like, you can listen to the background music below:
9898

99-
<audio controls src="/app/public/audio/ada.mp3" title="background music Ada"></audio>
100-
10199
## Known Challenges with LLMs
102100

103101
**Ada**, to get us started, we need to talk more about the artificial intelligence we're going to use to power the device. We'll use so called AI models that when paired with a retrieval mechanism to data can improve the quality of the AI's responses.

0 commit comments

Comments
 (0)