Skip to content

Commit 757eb5b

Browse files
authored
Merge pull request #1 from mr-d-luffy/mr-temp
commet for start
2 parents ffd6c3c + 314fa9b commit 757eb5b

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

oryx-build-commands.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PlatformWithVersion=Python
2+
BuildCommands=conda env create --file environment.yml --prefix ./venv --quiet

sha1.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,5 +132,6 @@ def main():
132132
print(SHA1Hash(hash_input).final_hash())
133133

134134

135+
# starting point of code
135136
if __name__ == "__main__":
136137
main()

voice.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
1+
# modules for use of voice
12
from gtts import gTTS
23
from colorama import Fore
34
import os
45

56
# Define the text you want to convert to speech
67
text = "Hello! This is a sample text to convert to speech."
78

8-
# Exception Handaled
9+
# Exception Handaled.
910
try:
1011
# Create a gTTS object
1112
tts = gTTS(text=text, lang="en")
1213

13-
# Save the audio file
14+
# Save the audio file in mp3 format
1415
tts.save("output.mp3")
1516

16-
# Play the audio file
17+
# Play the audio file from system
1718
os.system("start output.mp3")
1819
except Exception as e:
1920
print(Fore.RED, e, Fore.RESET)

vowel remover function.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@ def vowel_remover(text):
44
if l.lower() not in "aeiou":
55
string += l
66
return string
7-
print(vowel_remover("hello world!"))
7+
8+
# this code runes on only this file
9+
if __name__=="__main__":
10+
print(vowel_remover("hello world!"))

0 commit comments

Comments
 (0)