From 5e9685ba3bda0908fdd5ada1f8cbb05518cff551 Mon Sep 17 00:00:00 2001 From: Spandan Tripathy <128175097+CrypticRevenger@users.noreply.github.com> Date: Sat, 7 Oct 2023 00:28:35 +0530 Subject: [PATCH 1/2] Create 9SnmQJ.rb Signed-off-by: Spandan Tripathy <128175097+CrypticRevenger@users.noreply.github.com> --- Rr1Tsu/9SnmQJ.rb | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 Rr1Tsu/9SnmQJ.rb diff --git a/Rr1Tsu/9SnmQJ.rb b/Rr1Tsu/9SnmQJ.rb new file mode 100644 index 0000000..d8aab30 --- /dev/null +++ b/Rr1Tsu/9SnmQJ.rb @@ -0,0 +1,36 @@ +# Import necessary libraries +require 'bio' +require 'gnuplot' + +# Define a method to analyze and visualize genomic data +def analyze_genomic_data(data_file) + begin + # Read the genomic data from the file + data = Bio::FlatFile.auto(data_file).first + + # Perform analysis on the genomic data + # ... + + # Visualize the analyzed data using Gnuplot + Gnuplot.open do |gp| + Gnuplot::Plot.new(gp) do |plot| + # Customize the plot settings + plot.title 'Genomic Data Visualization' + plot.xlabel 'Position' + plot.ylabel 'Value' + + # Plot the analyzed data + plot.data << Gnuplot::DataSet.new(data) do |ds| + ds.with = 'lines' + ds.title = 'Genomic Data' + end + end + end + + rescue StandardError => e + puts "Error: #{e.message}" + end +end + +# Call the method with the path to the genomic data file +analyze_genomic_data('path/to/genomic_data.txt') From cc77b79ab18bb198fd7b4a9578bbad8be5deb764 Mon Sep 17 00:00:00 2001 From: Spandan Tripathy <128175097+CrypticRevenger@users.noreply.github.com> Date: Sat, 7 Oct 2023 01:26:31 +0530 Subject: [PATCH 2/2] Create MwlkjL.py Signed-off-by: Spandan Tripathy <128175097+CrypticRevenger@users.noreply.github.com> --- rmDHiN/MwlkjL.py | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 rmDHiN/MwlkjL.py diff --git a/rmDHiN/MwlkjL.py b/rmDHiN/MwlkjL.py new file mode 100644 index 0000000..a4990a8 --- /dev/null +++ b/rmDHiN/MwlkjL.py @@ -0,0 +1,30 @@ +''' +you have to install pkg- +1.speech_recognition +2. pyaudio +3.FLAC +and get your google API key +''' +import speech_recognition as sr + +def recognize_speech(): + # Initialize the recognizer + recognizer = sr.Recognizer() + + # Capture audio from the microphone + with sr.Microphone() as source: + print("Say something...") + recognizer.adjust_for_ambient_noise(source) # Adjust for ambient noise + audio = recognizer.listen(source) + + try: + # Recognize the speech using Google Web Speech API + text =recognizer.recognize_google(audio, key="YOUR_GOOGLE_API_KEY") + print("You said: " + text) + except sr.UnknownValueError: + print("Sorry, I couldn't understand what you said.") + except sr.RequestError as e: + print("Could not request results from Google Web Speech API; {0}".format(e)) + +if __name__ == "__main__": + recognize_speech()