Post by xpiotoc333 on Aug 29, 2024 19:13:37 GMT
Hey guys i was having intense dreams with the wav repeater and seeing manifestations in my life like lucky synchronicities and manifestations from thoughts coming forward but i wanted it to become faster and more powerful so i created a python program that makes a text in the prompt into both a binary wave file and a sine wave and layers them together. Let me know your results!
import numpy as np
import wave
import struct
import os
from pathlib import Path
def text_to_binary(text):
return ''.join(format(ord(char), '08b') for char in text)
def create_subliminal_audio(binary_data, sample_rate=44100, duration=10):
samples = np.zeros(sample_rate * duration)
bit_duration = len(samples) / len(binary_data)
for i, bit in enumerate(binary_data):
if bit == '1':
start = int(i * bit_duration)
end = int((i + 1) * bit_duration)
samples[start:end] = np.random.normal(0, 0.0001, end - start)
return samples
def create_sine_wave(text, sample_rate=44100, duration=10):
t = np.linspace(0, duration, sample_rate * duration, False)
freq = 440 # A4 note
return 0.5 * np.sin(2 * np.pi * freq * t)
def combine_audio_layers(layer1, layer2):
return (layer1 + layer2) / 2
def save_wav(filename, audio_data, sample_rate=44100):
with wave.open(filename, 'w') as wav_file:
wav_file.setnchannels(1)
wav_file.setsampwidth(2)
wav_file.setframerate(sample_rate)
for sample in audio_data:
wav_file.writeframes(struct.pack('h', int(sample * 32767)))
def main():
# Get input text from user
input_text = input("Enter the text for subliminal audio: ")
# Convert text to binary
binary_data = text_to_binary(input_text)
# Create subliminal audio
subliminal_audio = create_subliminal_audio(binary_data)
# Create sine wave
sine_wave = create_sine_wave(input_text)
# Combine layers
combined_audio = combine_audio_layers(subliminal_audio, sine_wave)
# Save as WAV file in Downloads folder
downloads_folder = str(Path.home() / "Downloads")
output_filename = os.path.join(downloads_folder, "subliminal_output.wav")
save_wav(output_filename, combined_audio)
print(f"Audio saved as: {output_filename}")
if __name__ == "__main__":
main()
import numpy as np
import wave
import struct
import os
from pathlib import Path
def text_to_binary(text):
return ''.join(format(ord(char), '08b') for char in text)
def create_subliminal_audio(binary_data, sample_rate=44100, duration=10):
samples = np.zeros(sample_rate * duration)
bit_duration = len(samples) / len(binary_data)
for i, bit in enumerate(binary_data):
if bit == '1':
start = int(i * bit_duration)
end = int((i + 1) * bit_duration)
samples[start:end] = np.random.normal(0, 0.0001, end - start)
return samples
def create_sine_wave(text, sample_rate=44100, duration=10):
t = np.linspace(0, duration, sample_rate * duration, False)
freq = 440 # A4 note
return 0.5 * np.sin(2 * np.pi * freq * t)
def combine_audio_layers(layer1, layer2):
return (layer1 + layer2) / 2
def save_wav(filename, audio_data, sample_rate=44100):
with wave.open(filename, 'w') as wav_file:
wav_file.setnchannels(1)
wav_file.setsampwidth(2)
wav_file.setframerate(sample_rate)
for sample in audio_data:
wav_file.writeframes(struct.pack('h', int(sample * 32767)))
def main():
# Get input text from user
input_text = input("Enter the text for subliminal audio: ")
# Convert text to binary
binary_data = text_to_binary(input_text)
# Create subliminal audio
subliminal_audio = create_subliminal_audio(binary_data)
# Create sine wave
sine_wave = create_sine_wave(input_text)
# Combine layers
combined_audio = combine_audio_layers(subliminal_audio, sine_wave)
# Save as WAV file in Downloads folder
downloads_folder = str(Path.home() / "Downloads")
output_filename = os.path.join(downloads_folder, "subliminal_output.wav")
save_wav(output_filename, combined_audio)
print(f"Audio saved as: {output_filename}")
if __name__ == "__main__":
main()