ShareShortcuts

Duplex Alpha 0.6.2

stardj1999
„Duplex Alpha 0.6.2“ forken

Hast du auf Basis dieses Kurzbefehls etwas Neues erstellt? Teile ihn als Fork: Er wird zu deinem eigenen Kurzbefehl, den du selbst verwaltest, und beide Seiten verlinken aufeinander, damit stardj1999 die Anerkennung erhält.

  1. 1Lade den Kurzbefehl und ändere ihn in der Kurzbefehle-App. Gib ihm einen eigenen Namen.
  2. 2Teile ihn in der Kurzbefehle-App und kopiere den iCloud-Link.
  3. 3Komm hierher zurück, füge den Link ein und beschreibe, was sich geändert hat, z. B. „Einen Schritt hinzugefügt, der Apple Intelligence nutzt, um den Text zu personalisieren.“
Downloads
5K
Gesichert
0
Aktionen
77
Kategorie
Messaging
Version
1.1
Sprache
EN

This is a replica of the Duplex feature launched by Google in 2018 and revealed at Google I/O 2018. It has most of the features Duplex had, although now there is a workaround, since you cannot inject audio into phone calls in Shortcuts: using two devices, which are: 1. the device you are currently using and 2. another device, preferably a phone, which can make and receive calls. Disclaimer: this project is not affiliated with Google or any of their trademarks. Please let me know if there are any bugs.glitches in the comments, and what your experience was like.

Neue Funktionen

Version 1.1

Stuttering

Versionsverlauf
1.1 28. Jun 2026

Stuttering

1.0 14. Jun 2026

First release

Was er macht

77 Aktionen
  1. Dismiss Siri
  2. Show Result
  3. Comment
    Creating profile of what the user wants to do
  4. Wait
  5. Speak Text
  6. Dictate Text
  7. Speak Text
  8. Dictate Text
  9. Set Variable
    location
  10. Change Case
  11. If
  12. Replace Text
  13. Replace Text
  14. Replace Text
  15. Search Local Businesses
  16. Choose from List
  17. Get Details of Locations
  18. Set Variable
    location_phone
  19. Speak Text
  20. Dictate Text
  21. If
  22. Replace Text
  23. Replace Text
  24. Calculate
  25. Speak Text
  26. If
  27. Replace Text
  28. Replace Text
  29. Calculate
  30. If
  31. Speak Text
  32. If
  33. Speak Text
  34. Speak Text
  35. Dictate Text
  36. Set Variable
    name
  37. List
  38. Set Variable
    opening_list
  39. Get Item from List
  40. Show Result
  41. Wait
  42. Make Spoken Audio
  43. List
  44. Get Item from List
  45. Replace Text
  46. Speak Text
  47. Dictate Text
  48. If
  49. Random Number
  50. Wait
  51. Dictate Text
  52. Split Text
  53. Change Case
  54. List
  55. If
  56. Split Text
  57. Change Case
  58. List
  59. Get Item from List
  60. Get Item from List
  61. Get Item from List
  62. If
  63. List
  64. Get Item from List
  65. Make Spoken Audio
  66. List
  67. Get Item from List
  68. Replace Text
  69. Speak Text
  70. Wait
  71. Dictate Text
  72. Text
  73. List
  74. Get Item from List
  75. Make Spoken Audio
  76. Speak Text
  77. Show Result

Als Code ansehen
Beta

Jede Aktion dieses Kurzbefehls als Cherri ausgeschrieben, eine Programmiersprache für Kurzbefehle. Ideal, um zu lernen, wie er funktioniert.

#include 'actions/text'
#include 'actions/device'
#define color lightblue
#define glyph phone

dismissSiri()
show("Disclaimer: this project is not affiliated with Google or any of their trademarks. ")
// Creating profile of what the user wants to do

wait(1)
speak("What do you want to book?")
listen()
speak("Where?")
listen("After Short Pause")
@location
uppercase(@location)

if  contains "at" ||  contains "pm" ||  contains "am" {
	replaceText("at", "")
	replaceText("am", "")
	replaceText("pm", "")
}
rawAction("is.workflow.actions.searchlocalbusinesses", {
	"WFSearchQuery": "{@location}"
})
const SelectedItem = chooseFromList(LocalBusinesses, "Which one?")
getLocationDetail(SelectedItem, "Phone Number")
@location_phone
speak("At what time?")
const DictatedText = listen("After Short Pause")

if DictatedText contains "PM" {
	replaceText("At", "", DictatedText)
	const UpdatedText = replaceText("PM", "", DictatedText)
	speak("OK, but if {DictatedText} isn't available today, can I try {} PM?")
} else {
	replaceText("At", "", DictatedText)
	const UpdatedText1 = replaceText("AM", "")
	const CalculationResult = UpdatedText1 + 1
	if CalculationResult >= 12 {
		speak("OK, but if {DictatedText} isn't available today, can I try {CalculationResult} PM?")
	} else {
		speak("OK, but if {DictatedText} isn't available today, can I try {CalculationResult} AM?")
	}
}
speak("One last thing: what's your name?")
listen("After Short Pause")
@name
list("Hi. I'd like to make {} on behalf of {@name} at {}. Oh, and by the way, is {DictatedText} available? We can always do later instead.", "Hey there. Can I make {} on behalf of {@name} at {}? Also, is {DictatedText} available? If it isn't, we can do later instead.", "Hello there. Let’s do {}. I’m calling on behalf of  {@name} at {}. Can you please confirm that {DictatedText} is available? If it isn't, we can use later as a replacement. ", "Hi there. I’m calling to make  {} for  {@name} at {}. Can I confirm with you that that {DictatedText} is available? If it isn’t, we can do later instead. ")
@opening_list
getListItem(@opening_list, 0)
show("Disclaimer: this setup requires two devices, which are: 1. the device you are currently using and 2. another device, preferably a phone, which can make and receive calls. Call {@location_phone} on the Phone app's number pad then click \"Done\" once they pick it up.")
wait(0)
makeSpokenAudio()
const List = list("…um…", "…um,", ", uh…", ", uh, ", ", erm…", ", erm, ")
getListItem(List, 0)
replaceText(", ")
speak()
const DictatedText1 = listen()

if DictatedText1 == "" {
	const RandomNumber = randomNumber(1, 3)
	wait(RandomNumber)
	const DictatedText2 = listen()
	const SplitText = splitText(DictatedText2, " ")
	uppercase(SplitText)
	list("pm", "available", "am")
} else {
	const SplitText1 = splitText(DictatedText1, " ")
	const UpdatedText2 = uppercase(SplitText1)
	const List1 = list("available", "pm", "am")
	getListItem(List1, 0)
	getListItem(List1, 2)
	getListItem(List1, 0)
	if UpdatedText2 contains  {
		const List2 = list("That's wonderful! I'm, using experimental technology, so, can you please state, at what time in a clean format such as \"4 PM\" or \"11 AM\"? Thanks.", "Great. I was, made with experimental technology, so please tell me: what time do you, have available. Say it in a clean format like \"3 PM\" or \"10 AM\"? Thank you.", "Good! I was made with technology in its early stages, so tell me what time you have in a format like “2 PM” or “9 AM”.", "Good. I’m currently using technology still being experimented with, so, please tell me what time you’d like me to book in a clean format, like “1 PM” or “8 AM”.")
		getListItem(List2, 0)
		makeSpokenAudio()
		const List3 = list("…um…", "…um,", ", uh…", ", uh, ", ", erm…", ", erm, ")
		getFirstItem(List3)
		replaceText(", ")
		speak()
		wait(0)
		listen()
		const List4 = list("Good! {@name} will pay on-site. I’ll inform them and they’ll be there!", "Awesome. {@name} will pay right there, and I’ll inform them right now.", "Great! {@name} will pay there, and they’ll be informed by me now.")
		getListItem(List4, 0)
		makeSpokenAudio()
		speak()
		show("I've already talked to them—hang up if they haven't done it already. In short: I've booked {} on your behalf and said you'd pay on-site. Goodbye!\n\nTips:\n1. Go there at {}, as that is what's available;\n2. Informed them you'll pay on-site.")
	}
}
In Cherri Playground öffnen Mit cherri 2.3.0 (GPL-2.0) dekompiliert. Eventuell sind kleine Korrekturen nötig, bevor es kompiliert wird.

Bewertungen und Rezensionen

Rezension schreiben
–
von 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Werbung

Mehr von stardj1999

Alle anzeigen

Das gefällt dir vielleicht auch

Alle anzeigen
Werbung