ShareShortcuts
Создать форк «Duplex Alpha 0.6.2»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы stardj1999 получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
5K
Сохранено
0
Действия
77
Категория
Messaging
Версия
1.1
Язык
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.

Что нового

Версия 1.1

Stuttering

История версий
1.1 28 июн 2026 г.

Stuttering

1.0 14 июн 2026 г.

First release

Что делает

Действий: 77
  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

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#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.")
	}
}
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от stardj1999

См. все

Вам также может понравиться

См. все
Реклама