Skip to content

Commit

Permalink
phone: shortcuts gcp command- pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanwhiting committed Feb 5, 2024
1 parent 17cb5f4 commit 6e624f7
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .obsidian/plugins/recent-files-obsidian/data.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
{
"recentFiles": [
{
"basename": "embedding-audio-in-quarto",
"path": "tech/embedding-audio-in-quarto.md"
},
{
"basename": "guitar-clouds",
"path": "creative/guitar-clouds.md"
Expand Down Expand Up @@ -195,10 +199,6 @@
{
"basename": "export-your-libby-timeline-to-obsidian",
"path": "posts/export-your-libby-timeline-to-obsidian.md"
},
{
"basename": "reading-list",
"path": "lists/reading-list.md"
}
],
"omittedPaths": [],
Expand Down
12 changes: 6 additions & 6 deletions .obsidian/workspace-mobile.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"state": {
"type": "markdown",
"state": {
"file": "creative/guitar-clouds.md",
"file": "tech/embedding-audio-in-quarto.md",
"mode": "source",
"source": true
}
Expand Down Expand Up @@ -93,7 +93,7 @@
"state": {
"type": "backlink",
"state": {
"file": "creative/guitar-clouds.md",
"file": "tech/embedding-audio-in-quarto.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
Expand All @@ -110,7 +110,7 @@
"state": {
"type": "outline",
"state": {
"file": "creative/guitar-clouds.md"
"file": "tech/embedding-audio-in-quarto.md"
}
}
},
Expand All @@ -120,7 +120,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "creative/guitar-clouds.md",
"file": "tech/embedding-audio-in-quarto.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
Expand All @@ -141,14 +141,15 @@
},
"active": "be767112276aa446",
"lastOpenFiles": [
"creative/guitar-clouds.md",
"tech/embedding-audio-in-quarto.md",
"creative/prose-the-thief-of-time.md",
"creative/prose-red-eyed.md",
"creative/ice-baths.md",
"creative/vacation.md",
"creative/poem-cuddles.md",
"creative/vanished.md",
"creative/apology.md",
"creative/guitar-clouds.md",
"img/dalle-clouds-over-a-field.jpeg",
"goals/2024-02-04.md",
"goals/2024-02-05.md",
Expand All @@ -170,7 +171,6 @@
"book-review/mindset.md",
"book-review/the-storytelling-animal.md",
"book-review/the-body.md",
"book-review/radical-candor.md",
"img/dalle-image-divinely-discontent.jpeg",
"img/photo-screenshot-leaderboard-llm-short.jpeg",
"img/photo-screenshot-chatbot-arena-leaderboard.jpeg",
Expand Down
Binary file added img/screenshot-chrome-mobile-quarto-audio.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/screenshot-quarto-audio-safari.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions tech/embedding-audio-in-quarto.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
title: Embedding audio in Quarto
description: How do I use audio in Quarto? Here are three ways.
date: 2024-02-05 12:31:54
created: 2024-02-05 12:31:54
categories:
- tech
- quarto
- blogging
draft: false
---
I want to embed just a plain audio file in my blog post.

Check out [Guitar: Clouds](../creative/guitar-clouds.md), where I embed some audio using the quarto video short link: [Quarto – Videos](https://quarto.org/docs/authoring/videos.html).

My process:

- take a voice recording with my voice notes on iOS.
- Save to files, I did audio/ folder ([How to blog from your phone using quarto (or hugo/jekyll/etc) using Working Copy and Obsidian](../posts/quarto-from-phone/index.md))
- Then if I link using a standard markdown link it'll create an audio recording in a new browser. If I use the video shortcode then quarto will embed it as a video right in the post (doesn't open a new browser). You can adjust the height so it's not a massive black screen.

```
Song snippet today: [2024-02-05-guitar-clouds](../audio/2024-02-05-guitar-clouds.m4a) 3rd capo, G, Em, C, G with some pinky action.
<-- This works on safari, not chrome -->
![2024-02-05-guitar-clouds](../audio/2024-02-05-guitar-clouds.m4a)
{{< video ../audio/2024-02-05-guitar-clouds.m4a height="50">}}
```

Hope this helps someone!


Note, the second way (`the ![]`) approach only works on safari for some reason. The audio link wouldn't appear on Chrome.

0 comments on commit 6e624f7

Please sign in to comment.