Filter submissions
213 submissions
# Starred Locked Notes Created User IP address Script Title Script Description Sort descending Script Name Email Address Organization Name Organization URL Operations
99 Star/flag Script Upload: Submission #99 Lock Script Upload: Submission #99 Add notes to Script Upload: Submission #99 Wed, 06/24/2020 - 19:21 Anonymous 50.35.82.111 Subroutine Test Testing subroutines # Subroutine Test

Script: "Subroutine Test"

Name Speak : Patty : "</speak>Version 20200624 18:33 Subroutine Test"

## Initialize

Variable: {exitList} = “Patty exit”, “Patty cancel”, “never mind”
Variable: {noList} = “no”, “not now”, "never mind", "nope", "n"
Variable: {yesList} = "yes", "yup", "y"
Variable: {alertsPhraseList} = "help", "I need help", "help me", "emergency", "this is an emergency", "I need a doctor", "I need a doctor", "I need a doctor", "I need a doctor", "I need a doctor", "I need a nurse", "I need aid", "I need a caregiver", "I need assistance", "I fell", "I can't get up"
Variable: {heyPattyList} = "hey Patty", "Patty are you there"

Variable: {askPrompt} = ""
Variable: {returnLabel} = ""
Variable: {askInput} = ""

returnLabel = InstallAssistant
askPrompt = "Hi, I'm Patty. Say your name, or cancel."

Goto : ASK

@InstallAssistant

userName = askInput
Name Speak : Patty : "Hi {userName}. I am glad you chose to test subroutines."
Name Speak : Patty : "Patty Exiting"
exit

##

@ASK
if {askPrompt} != ""
Name Speak : Patty : "{askPrompt}"
voice_input {askInput}
if {askInput} IN {exitList[*]}:
Name Speak : Patty : "Say yes to confirm exiting Patty"
voice_input{askInput}
if {askInput} IN {yesList[*]}:
Name Speak : Patty : "Patty, signing off"
exit
else
goto : ASK
if {askInput} IN {heyPattyList[*]}:
Name Speak : Patty : "Patty, the Neon AI Patient Assistant, is listening"
goto : ASK
Name Speak : Patty : "About to return to {returnLabel}"
Goto: {returnLabel}

Daniel McKnight daniel@neongecko.com
105 Star/flag Script Upload: Submission #105 Lock Script Upload: Submission #105 Add notes to Script Upload: Submission #105 Tue, 12/14/2021 - 18:03 Anonymous 76.121.181.179 Corny One The simplest possible CBE - elaborate later. Script: "Corny One"
Variable: example
Variable: discard
Variable: whatisay
Variable: try
Neon Speak: "Teach me with an example."
Neon Speak: "Tell me something like this: when I say,,, jump,,, you say,,, how high."
voice_input(discard)
voice_input(whatisay)
voice_input(discard)
voice_input(whatyousay)
Neon Speak: "I think I got it."
Neon Speak: "Go ahead, try me."
voice_input(discard)
Neon Speak: "{whatyousay}"
LOOP Q1
    Neon Speak: "Try me again, or say exit."
    voice_input(try)
    if {try} == "exit":
        Exit
Neon Speak: "{whatyousay}"
LOOP Q1 END
Exit
Too Embarassing elon@neon.ai
108 Star/flag Script Upload: Submission #108 Lock Script Upload: Submission #108 Add notes to Script Upload: Submission #108 Thu, 03/09/2023 - 07:54 Anonymous 146.70.117.227 User Voice Recognition This is a User Voice Recognition skill for Neon that
includes the ability to recognize the user's voice and save the voice
recognition data to the bootable USB drive for the Mark 2. The updated
code saves the user's voice recognition file to a text file named after
the user's name, and then Neon confirms that the file has been saved
after the training is completed.

Skill Description: This skill allows Neon AI to recognize and remember
the voice of its user (up to four different voices) and save the voice
recognition data to the bootable USB drive for the Mark II device.
import speech_recognition as sr
import os

class UserVoiceRecognitionSkill:
def __init__(self):
self.user_voice_profiles = {}
self.sample_rate = 44100
self.chunk_size = 1024
self.format = sr.paInt16

def train_voice_profile(self, n_session):
r = sr.Recognizer()
with sr.Microphone(sample_rate=self.sample_rate, chunk_size=self.chunk_size) as source:
n_session.say("What is your name?")
audio = r.listen(source)

try:
user_name = r.recognize_sphinx(audio)
except sr.UnknownValueError:
n_session.say("Sorry, I couldn't understand your name. Please try again.")
return

with sr.Microphone(sample_rate=self.sample_rate, chunk_size=self.chunk_size) as source:
n_session.say(f"Hi {user_name}! Please say a few sentences so I can learn to recognize your voice.")
audio = r.listen(source)

try:
voice_profile = r.recognize_sphinx(audio)
if len(self.user_voice_profiles) < 4:
self.user_voice_profiles[user_name] = voice_profile
n_session.say("Thank you! I have learned to recognize your voice.")
else:
n_session.say("I can only recognize up to four different voices. Please remove a voice profile to add a new one.")
except sr.UnknownValueError:
n_session.say("Sorry, I couldn't understand what you said. Please try again.")

# Save user's voice recognition file to Bootable USB Drive for the Mark II
with open(f"{user_name}.txt", "w") as f:
f.write(voice_profile)

# Confirm the voice recognition file is saved
n_session.say(f"I now know your voice, {user_name}, and have saved it to my files.")
n_session.complete()

def execute(self, n_session):
if not self.user_voice_profiles:
self.train_voice_profile(n_session)

r = sr.Recognizer()
with sr.Microphone(sample_rate=self.sample_rate, chunk_size=self.chunk_size) as source:
audio = r.listen(source)

try:
user_input = r.recognize_sphinx(audio)
for user_name, voice_profile in self.user_voice_profiles.items():
if voice_profile.lower() in user_input.lower():
n_session.say(f"Hi {user_name}! How can I help you today?")
return
n_session.say("Sorry, I don't recognize your voice. Would you like to train me again?")
except sr.UnknownValueError:
n_session.say("Sorry, I couldn't understand what you said.")
Adam Obradovic elric@riseup.net
109 Star/flag Script Upload: Submission #109 Lock Script Upload: Submission #109 Add notes to Script Upload: Submission #109 Thu, 03/09/2023 - 07:58 Anonymous 146.70.117.227 Re-name Neon This skill allows the user to rename Neon and save the new
name to Neon's AI's Bootable USB Drive for the Mark II.

Activation Phrase: "Hey Neon, rename yourself."

Sample Utterances:

"Change your name to [new name]."
"Can you call yourself [new name] from now on?"
"I want to give you a new name. Let's call you [new name]."

Skill Steps:

Neon AI will prompt the user to provide a new name for it.
The user will provide the new name.
Neon AI will confirm the new name and ask the user if they want to
save it. If the user confirms, Neon AI will save the new name to its
Bootable
USB Drive for the Mark II and reply with a confirmation message.
If the user does not confirm, Neon AI will ask if the user wants to
try again or end the session.
import neon
import os

app = neon.Application()

@app.handle(intent='rename_neon')
def rename_neon_handler(request, responder):
new_name = request.slot_value('new_name')

# Confirm the new name and ask the user if they want to save it
confirmation_message = f"Are you sure you want to change my name to
{new_name}?"
confirmation = responder.yes_or_no(confirmation_message)

if confirmation == 'yes':
# Save the new name to Neon's AI's Bootable USB Drive for the
Mark II
bootable_drive_path = "/boot"
new_name_file_path = os.path.join(bootable_drive_path,
"neon_name.txt")
with open(new_name_file_path, "w") as f:
f.write(new_name)
responder.reply(f"My new name is now {new_name}.")
else:
# Ask the user if they want to try again or end the session
retry_message = "Do you want to try again or end this session?"
retry = responder.yes_or_no(retry_message)
if retry == 'yes':
responder.listen()
else:
responder.reply("Okay, see you next time!")

app.run()
Adam Obradovic elric@riseup.net
57 Star/flag Script Upload: Submission #57 Lock Script Upload: Submission #57 Add notes to Script Upload: Submission #57 Tue, 11/19/2019 - 19:03 Anonymous 73.109.151.117 User Register Demo user register demo Script: "User Register Demo"
Variable: {full_name}: ""
Variable: {first_name}: ""
Variable: {last_name}: ""
Variable: {selection}: ""
Neon speak:
"Hello human. My full name is Neon Gecko Inc. Please call me Neon. Lets get started."
LOOP get_name
Neon speak: "Please tell me your full name or say exit"
voice_input{full_name}
Execute: "neon my name is {full_name}"
Neon speak: "Thank you."
Python: time.sleep(5)
Execute: "neon tell me my first name"
Execute: "neon tell me my last name"
LOOP change_name
Neon speak: "Is that correct? Say yes, no, change first name, change last name or exit"
voice_input{selection}
Case: {selection}
"yes"
Neon speak: "Okay"
Execute: "exit"
"no"
Neon speak: "Sorry. Please say name to try again"
LOOP get_name END
"change first name"
Neon speak: "Tell me your first name or say exit"
voice_input{first_name}
Execute: "neon my first name is {first_name}"
Execute: "neon tell me my first name"
LOOP change_name END
"change last name"
Neon speak: "Tell me your last name or say exit"
voice_input{last_name}
Execute: "neon my last name is {last_name}"
Execute: "neon tell me my last name"
LOOP change_name END
Exit
Daniel dainel@neongecko.com
47 Star/flag Script Upload: Submission #47 Lock Script Upload: Submission #47 Add notes to Script Upload: Submission #47 Tue, 11/19/2019 - 14:03 Anonymous 73.109.151.117 Weather Loop Demo Weather Loop Demo Script: "Demo Weather Loop"
Variable: {location}: ""
Variable: {forecast}: ""
LOOP WW
Neon speak:
"Say A or Athens for the weather in Athens"
"Say B or Bombay for the weather in Bombay"
"Say S or Seattle for the weather in Seattle"
"Say exit to exit"
voice_input{location}
Case {location}:
"A or Athens"
Execute: "What is the weather in Athens"
Neon speak: "about to repeat A"
"B or Bombay"
Execute: "What is the weather in Bombay"
Neon speak:
"say 10 day or 5 day forecast"
voice_input{forecast}
Case {forecast}:
"10 day or 10"
Execute: "What is the 10 day forecast for Bombay"
"5 day or 5"
Execute: "What is the 5 day forecast for Bombay"
Neon speak: "about to repeat B"
"S or Seattle"
Execute: "What is the weather in Seattle"
Neon speak: "about to repeat S"
Neon speak:
"End of loop WW."
LOOP WW END
Neon speak: "I'm done now."
Exit

Daniel daniel@neongecko.com
51 Star/flag Script Upload: Submission #51 Lock Script Upload: Submission #51 Add notes to Script Upload: Submission #51 Tue, 11/19/2019 - 15:24 Anonymous 73.109.151.117 Website Navigator website navigator Script: "Website Navigator"
# Synonym: "demo website navigator"
# Synonym: "website navigator demo"
# Language: "English American Female"
Variable: {options}: table_scrape(https://neongecko.com)
# Variable: {options}: demos: https://www.neongecko.com/demos , videos: https://www.neongecko.com/demos , nano: https://www.neongecko.com/NeonNanoforWebsiteDesigners , audible: https://www.neongecko.com/NeonAudibleAiTech , tools: https://www.neongecko.com/NeonTechnology , websites: https://www.neongecko.com/neonnano , phones: https://www.neongecko.com/NeonAndroid , devices: https://www.neongecko.com/NeonAIforHome
Variable: {chosen}: ""
# Neon speak: "Options: {options}"
Neon speak: "Please tell me what Neon AI web page you'd like to see. You can say things like random{options} or say quit or exit."
LOOP WN
voice_input{chosen}
# Neon speak: "navigating to {chosen}"
if {chosen} == "quit":
Neon speak: "say pause to turn off the mic or say exit to close the window."
voice_input{chosen}
if {chosen} == "pause":
# execute skill to turn off mic
Execute: "neon mute microphone"
else:
if closest{chosen,options}:
Execute: "neon browse to closest{chosen,options}"
else:
Neon speak: "Page not found"
Neon speak: "Tell me another Neon AI web page you'd like to see or say quit."
LOOP WN END
Exit
Daniel daniel@neongecko.com
85 Star/flag Script Upload: Submission #85 Lock Script Upload: Submission #85 Add notes to Script Upload: Submission #85 Fri, 05/08/2020 - 13:59 Anonymous 50.35.82.111 Website Navigator Timeout Website navigator with an added reminder prompt if no response is heard after 10 seconds Script: "Website Navigator Timeout"
Variable: {options}: table_scrape(https://neongecko.com)
Variable: {chosen}: ""
Timeout: 10 instructions
#Timeout: 10 7
@instructions
Neon speak: "Please tell me what Neon AI web page you'd like to see. You can say things like random{options} or say quit or exit."
LOOP WN
voice_input{chosen}
# Neon speak: "navigating to {chosen}"
if {chosen} == "quit":
Neon speak: "say pause to turn off the mic or say exit to close the window."
voice_input{chosen}
if {chosen} == "pause":
# execute skill to turn off mic
Execute: "neon mute microphone"
else:
if closest{chosen,options}:
Execute: "neon browse to closest{chosen,options}"
else:
Neon speak: "Page not found"
Neon speak: "Tell me another Neon AI web page you'd like to see or say quit."
LOOP WN END
Exit
Daniel McKnight daniel@neongecko.com
48 Star/flag Script Upload: Submission #48 Lock Script Upload: Submission #48 Add notes to Script Upload: Submission #48 Tue, 11/19/2019 - 14:04 Anonymous 73.109.151.117 Welcome Neon Demo Welcome Neon Demo Script: "Welcome Neon Demo"
#Language: "English British Male"
Language: "en-gb"
Variable: {full_name}: ""
Variable: {first_name}: ""
Variable: {last_name}: ""
Variable: {response}: ""
Neon speak:
"Hello human. My full name is Neon Gecko Inc; call me Neon. Lets get started."
Execute: "what time is it"
Execute: "what is the weather"
Neon speak:
"Please say your first and last name or say exit, or you can type your response"
voice_input{full_name}
Execute: "my name is {full_name}"
Neon speak: "Thank you."
#Execute: "tell me my full name"
if profile{user.first_name}:
Execute: "tell me my first name"
if profile{user.last_name}:
Execute: "tell me my last name"
Neon speak:
"Is that correct? Say yes, change first name, change last name or exit"
voice_input{response}
Case: {response}
"yes"
Exit
"change first name"
Neon speak:
"Tell me your first name or say exit"
voice_input{first_name}
Execute: "neon my first name is {first_name}"
Execute: "neon tell me my first name"
"change last name"
Neon speak:
"Tell me your last name or say exit"
voice_input{last_name}
Execute: "neon my last name is {last_name}"
Execute: "neon tell me my last name"
Exit
Daniel daniel@neongecko.com
107 Star/flag Script Upload: Submission #107 Lock Script Upload: Submission #107 Add notes to Script Upload: Submission #107 Mon, 12/26/2022 - 19:58 Anonymous 111.196.190.249 welcomezhh welcomezhh in Chinese Script: "welcomezhh"
Language: zh-cn, female
Variable: name
Variable: like
Variable: location
Variable: question
Neon Speak: "你好, 我名字是 Neon."
Neon Speak: "你叫什么名字?"
voice_input(name)
Neon Speak: "很高兴见到你 {name}"

Neon Speak: "你在哪个城市?"
voice_input(location)
Execute: " {location} 现在什么时间?"
Execute: " {location} 现在什么天气?"
LOOP Q1
Neon Speak: "请问我问题,或说退出或 exit"
if {question} == "exit":
Exit
if {question} == "退出":
Exit
voice_input(question)
#Execute: "{question}"
LOOP Q1 END
Exit
andy zhou ablozhou@gmail.com
67 Star/flag Script Upload: Submission #67 Lock Script Upload: Submission #67 Add notes to Script Upload: Submission #67 Wed, 12/04/2019 - 15:28 Anonymous 73.109.151.117 Weather Time Population Goto WTP script with added Goto examples to go to line and go to label Script: "Weather Time Population Goto"
Language: "en-au female"
Synonym: "Demo WTP Goto"
Variable: {response}: ""
Neon speak:
"Say 1 or World Times for world times"
"Say 2 or World Weather for world weather"
"Say 3 or World Populations for world populations"
voice_input{response}
Case {response}:
"1 or World Times"
Neon speak:
"Say A or Athens for Athens's time"
"Say B or Bombay for Bombay's time"
"Say S or Seattle for Seattle's time"
voice_input{response}
Case {response}:
"A or Athens"
Execute: "What time is it in Athens"
Goto: athens_weather
"B or Bombay"
Execute: "What time is it in Bombay"
"S or Seattle"
Execute: "What time is it in Seattle"
"2 or World Weather"
Neon speak:
"Say A or Athens for the weather in Athens"
"Say B or Bombay for the weather in Bombay"
"Say S or Seattle for the weather in Seattle"
voice_input{response}
Case {response}:
"A or Athens"
@athens_weather
Execute: "What is the weather in Athens"
Goto: 50
"B or Bombay"
Execute: "What is the weather in Bombay"
"S or Seattle"
Execute: "What is the weather in Seattle"
"3 or World Populations"
Neon speak:
"Say A or Athens for Athens's population"
"Say B or Bombay for Bombay's population"
"Say S or Seattle for Seattle's population"
voice_input{response}
Case {response}:
"A or Athens"
Execute: "What is the population of Athens"
"B or Bombay"
Execute: "What is the population of Bombay"
"S or Seattle"
Execute: "What is the population of Seattle"
Exit
Daniel daniel@neongecko.com
83 Star/flag Script Upload: Submission #83 Lock Script Upload: Submission #83 Add notes to Script Upload: Submission #83 Tue, 03/17/2020 - 13:09 imedqo 73.109.151.117 xyz xyz script Script: "xyz"
Neon speak: "Hello"
Neon speak: "Thank you for running the xyz script. Would you like to hear a joke"
Execute: "tell me a joke"
Neon speak: "Here is the current time"
Execute: "what is the time"
Exit
josh josh@neongecko.com