-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
phone: shortcuts gcp command- pre commit
- Loading branch information
1 parent
17cb5f4
commit 6e624f7
Showing
5 changed files
with
48 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |