Filter submissions
208 submissions
# Starred Locked Notes Created User IP address Script Title Script Description Script Name Email Address Sort descending Organization Name Organization URL Operations
80 Star/flag Script Upload: Submission #80 Lock Script Upload: Submission #80 Add notes to Script Upload: Submission #80 Mon, 02/03/2020 - 18:00 imedqo 73.109.151.117 Test Eliza Name speak Eliza test Script: Test Eliza
Language: "en-GB female"

Variable: input = ""
Variable: split_input

# Static Strings
Variable: initial = It's nice to meet you. How are you today?
Variable: final = Goodbye. Thank you for talking to me.
Variable: quit = bye, goodbye, quit

# Substitutions
Variable: input_sub = dont don't,
cant can't,
wont won't,
recollect remember,
dreamt dreamed,
dreams dream,
maybe perhaps,
when what,
certainly yes,
machine computer,
computers computer,
were was,
"you're" "you are",
"i'm" "i am",
same alike

# Synonyms
Variable: belief = belief, feel, think, believe, wish
Variable: family = family, mother, mom, father, dad, sister, brother, wife, children, child
Variable: desire = desire, want, need, wish
Variable: sad = sad, unhappy, depressed, sick
Variable: happy = happy, elated, glad, better
Variable: cannot = cannot, can't
Variable: everyone = everyone, everybody, nobody, noone
Variable: people = people, they, others, adults, children, teenagers
Variable: be = be, am, is, are, was
Variable: sorry = sorry, i apologize
Variable: language = deutsch, francais, italiano, espanol

# Input to response matching
Variable: key_sub = "{sorry_0} [sorry] for {Vsorry}" "Please don't apologize about {Vsorry}" "No need to apologize about {Vsorry[*]}" "I've told you that apologies are not required." "Vsorry's are {Vsorry[*]}",
"i remember {Viremember}" "Do you often think of {Viremember}?" "Does thinking of {Viremember} bring anything else to mind?" "What else do you recollect?" "Why do you recollect {Viremember} just now?" "What in the present situation reminds you of {Viremember}?" "Viremember's are {Viremember[*]}",
"do you remember {Vyouremember}" "Did you think I would forget {Vyouremember}?" "Why do you think I should recall {Vyouremember} now?" "What about {Vyouremember}? "You mentioned {Vyouremember}?" "Vyouremember's are {Vyouremember[*]}",
"if {Vif}" "Do you think its likely that {Vif}?" "Do you wish that {Vif}?" "What do you know about {Vif}?" "Really, if {Vif}?" "Vif's are {Vif[*]}",
"{Vdreamed} dreamed {Vdreamed2}" "Really, {Vdreamed2}?" "Have you ever fantasized {Vdreamed2} while you were awake?" "Have you ever dreamed {Vdreamed2} before?" "Vdreamed2's are {Vdreamed2[*]}",
"dream" "What does that dream suggest to you?" "Do you dream often?" "What persons appear in your dreams? "Do you believe that dreams have something to do with your problems?",
"perhaps" "You don't seem quite certain." "Why the uncertain tone?" "Can't you be more positive?" "You aren't sure?" "Don't you know?",
"name" "I am not interested in names." "I've told you before, I don't care about names -- please continue.",
"{Vlanguage}[language]{Vlanguage2}" "I speak only English" "I do not speak {[language]}",
"hello" "How do you do. Please state your problem." "Hi. What seems to be your problem?",
"how are you" "We were discussing you -- not me.",
"are you {Vareyou}" "Why are you interested in whether I am {Vareyou} or not?" "Would you prefer if I weren't {Vareyou}?" "Perhaps I am {Vareyou} in your fantasies." "Do you sometimes think I am {Vareyou}?" "Vareyou's are {Vareyou[*]}",
"computer" "Do computers worry you?" "Why do you mention computers?" "What do you think machines have to do with your problem?" "Don't you think computers can help people?" "What about machines worries you?" "What do you think about machines?",
"am i {Vami}" "Do you believe you are {Vami}?" "Would you want to be {Vami}?" "Do you wish I would tell you you are {Vami}?" "What would it mean if you were {Vami}?" "Vami's are {Vami[*]}",
"[people] are {Vpeople}" "Did you think they might not be {Vpeople}?" "Would you like it if they were not {Vpeople}?" "What if they were not {Vpeople}?" "Possibly they are {Vpeople}." "Vpeople's are {Vpeople[*]}",
"was i {Vwasi}" "What if you were {Vwasi}?" "Do you think you were {Vwasi}?" "Were you {Vwasi}?" "What would it mean if you were {Vwasi}?" "What does {Vwasi} suggest to you ?" "Vwasi's are {Vwasi[*]}",
"i was {Viwas}" "Were you really?" "Why do you tell me you were {Viwas} now?" "Perhaps I already know you were {Viwas}." "Viwas's are {Viwas[*]}",
"was you {Vwereyou}" "Would you like to believe I was {Vwereyou}?" "What suggests that I was {Vwereyou}?" "What do you think?" "Perhaps I was {Vwereyou}." "What if I had been {Vwereyou}?" "Vwereyou's are {Vwereyou[*]}",
"i am {Vsad} [sad]" "I am sorry to hear that you are {[sad]}." "Do you think that coming here will help you not to be {[sad]}?" "I'm sure it's not pleasant to be {[sad]}." "Can you explain what made you {[sad]}?",
"i am {Vhappy} [happy]" "How have I helped you to be {[happy]}?" "Has your treatment made you {[happy]}?" "What makes you {[happy]} just now?" "Can you explain why you are suddenly {[happy]}?",
"i [belief] {Vbelief1} i {Vbelief2}" "Do you really think so?" "But you are not sure you {Vbelief2}." "Do you really doubt you {Vbelief2}?" "Vbelief2's are {Vbelief2[*]}",
"i am {Viam}" "Is it because you are {Viam} that you came to me?" "How long have you been {Viam}?" "Do you believe it is normal to be {Viam}?" "Do you enjoy being {Viam}?" "Viam's are {Viam[*]}",
"i [cannot] {Vicannot}" "Why do you think that you can't {Vicannot}?" "Have you tried?" "Perhaps you could {Vicannot} now." "Do you really want to be able to {Vicannot}?" "Vicannot's are {Vicannot[*]}",
"i don't {Vidont}" "Don't you really {Vidont}?" "Why don't you {Vidont}?" "Do you wish to be able to {Vidont}?" "Does that trouble you?" "Vidont's are {Vidont[*]}",
"do i feel {Vdoifeel}" "Tell me more about such feelings." "Do you often feel {Vdoifeel}?" "Do you enjoy feeling {Vdoifeel}?" "Of what does feeling {Vdoifeel} remind you?" "Vdoifeel's are {Vdoifeel[*]}",
"i {Viyou} you" "Perhaps in your fantasies we {Viyou} each other." "Do you wish to {Viyou} me?" "You seem to need to {Viyou} me." "Do you {Viyou} anyone else?" "Viyou's are {Viyou[*]}",
"you are {Vyouare}" "What makes you think I am {Vyouare}?" "Does it please you to believe I am {Vyouare}?" "Do you sometimes wish you were {Vyouare}?" "Perhaps you would like to be {Vyouare}." "Vyouare's are {Vyouare[*]}",
"you {Vyoume} me" "Why do you think I {Vyoume} you?" "You like to think I {Vyoume} you, don't you ?" "What makes you think I {Vyoume} you?" "Really, I {Vyoume} you?" "Do you wish to believe I {Vyoume} you?" "Suppose I did {Vyoume} you -- what would that mean?" "Does someone else believe I {Vyoume} you?" "Vyoume's are {Vyoume[*]}",
"yes" "You seem to be quite positive." "You are sure." "I see." "I understand.",
"no" "Are you saying no just to be negative?" "You are being a bit negative." "Why not?" "Why 'no'?",
"my {Vmyfamily1} [family] {Vmyfamily2}" "Tell me more about your {[family]}." "Who else in your family {Vmyfamily2}?" "Your {[family]}?" "What else comes to mind when you think of your {[family]}?" "Vmyfamily2's are {Vmyfamily2[*]}",
"i [desire] {Vdesire}" "What would it mean to you if you got {Vdesire}?" "Why do you want {Vdesire}?" "Suppose you got {Vdesire} soon?" "What if you never got {Vdesire}?" "What would getting {Vdesire} mean to you?" "What does wanting {Vdesire} have to do with this discussion?" "Vdesire's are {Vdesire[*]}",
"what" "Why do you ask?" "Does that question interest you?" "What is it you really wanted to know?" "Are such questions much on your mind?" "What answer would please you most?" "What do you think?" "What comes to mind when you ask that?" "Have you asked such questions before?" "Have you asked anyone else?",
"because" "Is that the real reason?" "Don't any other reasons come to mind?" "Does that reason seem to explain anything else?" "What other reasons might there be?",
"why don't you {Vwhydontyou}" "Do you believe I don't {Vwhydontyou}?" "Perhaps I will {Vwhydontyou} in good time." "Should you {Vwhydontyou} yourself?" "You want me to {Vwhydontyou}?" "Vwhydontyou's are {Vwhydontyou[*]}",
"why can't i {Vwhycanti}" "Do you think you should be able to {Vwhycanti}?" "Do you want to be able to {Vwhycanti}?" "Do you believe this will help you to {Vwhycanti}?" "Have you any idea why you can't {Vwhycanti}?" "Vwhycanti's are {Vwhycanti[*]}",
"why" "Why do you ask?" "Does that question interest you?" "What is it you really wanted to know?" "Are such questions much on your mind?" "What answer would please you most?" "What do you think?" "What comes to mind when you ask that?" "Have you asked such questions before?" "Have you asked anyone else?",
"[everyone] {Veveryone}" "Really, {[everyone]}?" "Surely not {[everyone]} {Veveryone}." "Can you think of anyone in particular ?" "Who, for example?" "Are you thinking of a very special person?" "Who, may I ask?" "Someone special perhaps?" "You have a particular person in mind, don't you?" "Who do you think you're talking about?" "Veveryone's are {Veveryone[*]}",
"always" "Can you think of a specific example?" "When?" "What incident are you thinking of?" "Really, always?",
"alike" "In what way?" "What resemblance do you see?" "What does that similarity suggest to you?" "What other connections do you see?" "What do you suppose that resemblance means?" "What is the connection, do you suppose?" "Could here really be some connection?" "How?",
"[be] like" "In what way?" "What resemblance do you see?" "What does that similarity suggest to you?" "What other connections do you see?" "What do you suppose that resemblance means?" "What is the connection, do you suppose?" "Could here really be some connection?" "How?",
"can you {Vcanyou}" "You believe I can {Vcanyou} don't you?" "You want me to be able to {Vcanyou}." "Perhaps you would like to be able to {Vcanyou} yourself." "Vcanyou's are {Vcanyou[*]}",
"can i {Vcani}" "Whether or not you can {Vcani} depends on you more than me." "Do you want to be able to {Vcani}?" "Perhaps you don't want to {Vcani}." "Vcani's are {Vcani[*]}",
"your {Vyour}" "Why are you concerned over my {Vyour}?" "What about your own {Vyour}?" "Are you worried about someone else's {Vyour}?" "Really, my {Vyour}?" "Vyour's are {Vyour[*]}",
"my {Vmy}" "Your {Vmy}?" "Why do you say your {Vmy}?" "Does that suggest anything else which belongs to you?" "Is it important that your {Vmy}?" "Vmy's are {Vmy[*]}",
"you {Vyou}" "We are discussing you -- not me." "Oh. I {Vyou}?" "You're not really talking about me -- are you?" "What are your feelings now?" "Vyou's are {Vyou[*]}",
"i {Vi}" "You say {Vi}?" "Can you elaborate on that?" "Do you say {Vi} for some special reason?" "That's quite interesting." "Vi's are {Vi[*]}",
"thank you" "you are welcome" "don't mention it" "no problem",
"[quit]" "{final}",
"{Vx}" "I'm not sure I understand you fully." "Please go on." " What do you mean by {Vx}?" "Do you feel strongly about discussing such things?" "Vx's are {Vx[*]}"

Name speak: Eliza: {initial}

LOOP pre
voice_input {input}
Set: user_speech = {input}
sub_values{input, input_sub}
sub_key{input, key_sub}

Name speak: Eliza: {input}
if {user_speech} in {quit}:
Exit
LOOP pre END

Neon speak: {final}
Exit
Daniel McKnight daniel@neongecko.com
81 Star/flag Script Upload: Submission #81 Lock Script Upload: Submission #81 Add notes to Script Upload: Submission #81 Fri, 02/07/2020 - 17:29 imedqo 73.109.151.117 Test SSML Demo of different ssml speech options available Script: "Test SSML"

Variable: input = ""
Neon Speak: "Hi. I can put a <break time="300ms"/>break in my speech, or I can <emphasis level="strong">emphasize</emphasis> a word."
Neon Speak: I know that W3C is <sub alias="the World Wide Web Consortium">W3C</sub>
Neon Speak: "<prosody volume="+6dB">I can be loud, </prosody><prosody volume="-6dB">or I can be quiet.</prosody>"
Neon Speak: "<prosody rate="x-fast">I can talk very quickly, </prosody><prosody rate="fast">or a little faster, </prosody><prosody rate="slow">or talk slowly, </prosody><prosody rate="x-slow">or talk much slower</prosody>"
Neon Speak: "<prosody pitch="x-high">I can make my voice much higher, </prosody><prosody pitch="high">or just a little higher, </prosody><prosody pitch="low">or lower, </prosody>"<prosody pitch="x-low">or much lower</prosody>"
Neon Speak: "I can speak 2/7 as <say-as interpret-as="date" format="md">2/7</say-as>, or <say-as interpret-as="characters">2/7</say-as>"
Neon Speak: "I can spell out words and a 3 digit number <say-as interpret-as="characters">words and 321</say-as>."
Name Speak: Nobody: "Or I can speak as someone else."
Name Speak: Fast Famale: "<prosody volume="+6dB" rate="x-fast" pitch="x-high">I can be loud, fast, and high</prosody>"
Name Speak: Slow Male, en-us, male: "<prosody volume="-2dB" rate="x-slow" pitch="x-low">I can be quiet, slow, and deep</prosody>"

Exit
Daniel McKnight daniel@neongecko.com
141 Star/flag Script Upload: Submission #141 Lock Script Upload: Submission #141 Add notes to Script Upload: Submission #141 Wed, 02/21/2024 - 12:55 Anonymous 5.188.210.80 oinzrmhj <a href="http://semaglutideozempic.online/">buy semaglutide online from india</a> <a href="http://semaglutideozempic.online/">buy semaglutide online from india</a> rybelsus buy uk rybelsus buy uk debra38112@hotmail.com rybelsus buy uk http://rybelsus.us.com/
143 Star/flag Script Upload: Submission #143 Lock Script Upload: Submission #143 Add notes to Script Upload: Submission #143 Thu, 02/22/2024 - 11:26 Anonymous 5.188.210.21 euonstqa <a href="https://semaglutide.us.com/">semaglutide over the counter</a> <a href="https://semaglutide.us.com/">semaglutide over the counter</a> rybelsus order rybelsus order deon@gmail.com rybelsus order https://semaglutide.trade/
129 Star/flag Script Upload: Submission #129 Lock Script Upload: Submission #129 Add notes to Script Upload: Submission #129 Sat, 02/17/2024 - 21:24 Anonymous 5.188.210.21 djszjjzq <a href="https://wegovy.trade/">wegovy 3 mg tablet</a> <a href="https://wegovy.trade/">wegovy 3 mg tablet</a> wegovy xr wegovy xr deon@outlook.com wegovy xr https://semaglutide.download/
209 Star/flag Script Upload: Submission #209 Lock Script Upload: Submission #209 Add notes to Script Upload: Submission #209 Sat, 03/23/2024 - 11:34 Anonymous 5.188.210.91 monasvlx <a href="http://tadalafi.online/">buying cialis in mexico</a> <a href="http://tadalafi.online/">buying cialis in mexico</a> tadalafil 30 tadalafil 30 dgwilliams22@aol.com tadalafil 30 https://bmtadalafil.online/
188 Star/flag Script Upload: Submission #188 Lock Script Upload: Submission #188 Add notes to Script Upload: Submission #188 Thu, 03/14/2024 - 11:38 Anonymous 5.188.210.30 waamzdno <a href="http://metformindi.com/">buy metformin 1000 mg online</a> <a href="http://metformindi.com/">buy metformin 1000 mg online</a> metformin price in canada metformin price in canada dirlinc@mail.com metformin price in canada http://metforminn.com/
254 Star/flag Script Upload: Submission #254 Lock Script Upload: Submission #254 Add notes to Script Upload: Submission #254 Fri, 04/12/2024 - 05:25 Anonymous 5.188.210.93 wyckrexzi <a href="http://valtrexid.com/">valtrex no perscrition</a> <a href="http://valtrexid.com/">valtrex no perscrition</a> valtrex rx cost valtrex rx cost djyarosh@mail.com valtrex rx cost http://vatrex.online/
114 Star/flag Script Upload: Submission #114 Lock Script Upload: Submission #114 Add notes to Script Upload: Submission #114 Sat, 02/10/2024 - 01:22 Anonymous 5.188.210.38 ajwnpwhv <a href="http://ozempic.pics/">rybelsus canada pharmacy</a> <a href="http://ozempic.pics/">rybelsus canada pharmacy</a> buy rybelsus buy rybelsus dlphn2074@outlook.com buy rybelsus http://wegovy.guru/
150 Star/flag Script Upload: Submission #150 Lock Script Upload: Submission #150 Add notes to Script Upload: Submission #150 Sun, 02/25/2024 - 23:39 Anonymous 5.188.210.30 cindfezk <a href="https://rybelsus.trade/">rybelsus buy australia</a> <a href="https://rybelsus.trade/">rybelsus buy australia</a> wegovy buy online wegovy buy online dsakfjljlsdk@outlook.com wegovy buy online https://rybelsus.best/
151 Star/flag Script Upload: Submission #151 Lock Script Upload: Submission #151 Add notes to Script Upload: Submission #151 Mon, 02/26/2024 - 00:26 Anonymous 5.188.210.84 pdemgxkt <a href="https://rybelsustabs.shop/">semaglutide rybelsus</a> <a href="https://rybelsustabs.shop/">semaglutide rybelsus</a> wegovy tablets cost wegovy tablets cost dsfgsdf@hotmail.com wegovy tablets cost http://rybelsus.guru/
207 Star/flag Script Upload: Submission #207 Lock Script Upload: Submission #207 Add notes to Script Upload: Submission #207 Fri, 03/22/2024 - 12:02 Anonymous 5.188.210.84 sjvslolj <a href="https://olisinopril.com/">buy lisinopril 20 mg online uk</a> <a href="https://olisinopril.com/">buy lisinopril 20 mg online uk</a> semaglutide xr semaglutide xr dsfgsdf@mail.com semaglutide xr https://olisinopril.com/
245 Star/flag Script Upload: Submission #245 Lock Script Upload: Submission #245 Add notes to Script Upload: Submission #245 Sun, 04/07/2024 - 06:37 Anonymous 5.188.210.21 wdugpcjh <a href="http://prednisoneiv.online/">buy prednisone 1 mg mexico</a> <a href="http://prednisoneiv.online/">buy prednisone 1 mg mexico</a> prednisone 4 prednisone 4 dstransactions@yahoo.com prednisone 4 http://prednisoneo.com/
216 Star/flag Script Upload: Submission #216 Lock Script Upload: Submission #216 Add notes to Script Upload: Submission #216 Sun, 03/24/2024 - 23:52 Anonymous 5.188.210.80 oujvdagn <a href="https://bestmedsx.online/">best online pharmacy usa</a> <a href="https://bestmedsx.online/">best online pharmacy usa</a> us pharmacy us pharmacy dziel5512@mail.com us pharmacy https://bestmedsx.online/
222 Star/flag Script Upload: Submission #222 Lock Script Upload: Submission #222 Add notes to Script Upload: Submission #222 Fri, 03/29/2024 - 09:13 Anonymous 5.188.210.38 hhelxknt <a href="http://isynthroid.online/">online pharmacy no script synthroid 75</a> <a href="http://isynthroid.online/">online pharmacy no script synthroid 75</a> rybelsus buy online rybelsus buy online eabue@hotmail.com rybelsus buy online https://synthroidsl.online/
131 Star/flag Script Upload: Submission #131 Lock Script Upload: Submission #131 Add notes to Script Upload: Submission #131 Sun, 02/18/2024 - 17:13 Anonymous 5.188.210.87 aktvarxu <a href="http://semaglutidewegovy.online/">purchase ozempic</a> <a href="http://semaglutidewegovy.online/">purchase ozempic</a> rybelsus xl rybelsus xl ejm@yahoo.com rybelsus xl http://semaglutideozempic.shop/
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
106 Star/flag Script Upload: Submission #106 Lock Script Upload: Submission #106 Add notes to Script Upload: Submission #106 Tue, 12/14/2021 - 18:17 Anonymous 76.121.181.179 Testy Test Script: "Testy"
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}"
#Execute: "{question}"
LOOP Q1 END
Exit
Elon Testing 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