generated from extratone/latte
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBible API 1.jelly
31 lines (28 loc) · 1.26 KB
/
Bible API 1.jelly
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import Shortcuts
#Color: grayBrown, #Icon: openBook
/*
Retrieve and hear a specified Bible verse spoken aloud via bible-api.com.
My contact information:
Email: [email protected]
Contact card: bit.ly/whoisdavidblue
RoutineHub Profile: https://routinehub.co/user/blue
GitHub: https://github.com/extratone/i
Telegram: t.me/extratone
Twitter: twitter.com/NeoYokel
Reddit: reddit.com/u/asphaltapostle
Mastodon: mastodon.social/@DavidBlue
EVERYWHERE: bit.ly/dbrolodex
*/
askForInput(prompt: "Book", default: john) >> askForInput
var book = Provided Input
askForInput(prompt: "chapter:verse", default: 3:16) >> askForInput 1
var verse = Provided Input
url(url: "https://bible-api.com/${book}%20${Variable}") >> url
downloadURL(url: "${URL}") >> downloadURL
valueFor(key: "text", dictionary: Contents of URL) >> content
setClipboard(variable: content) >> setClipboard
speakText(text: "${content}")
showResult(text: "${content}")
spokenAudioFromText(text: "${content}", voice: com.apple.ttsbundle.gryphon-neural_simone_en-US_premium) >> spokenAudioFromText
encodeAudio(media: Spoken Audio, format: M4A, title: "${verse} ${Variable}", artist: "Siri Voice 2", album: "Simone Siri Reads the Word of The Lord", genre: "Religion", year: 2023) >> encodeAudio
share(file: Encoded Media) >> share