Questions tagged [sound]
Questions relating to Mathematica's sound and audio functionality, including Play, Sound, Audio and Speak.
297
questions
3
votes
1
answer
57
views
How to Emit a Feedback Sound when I Mouseover a Certain Cell Style - Stylesheet Solution
I am attempting to build a private stylesheet. One feature I would like to add is sound feedback when students move their mouse over a "Section" style cell. For example, on an Apple TV, as ...
3
votes
0
answers
81
views
Music notation in WL/Mathematica
Is there any way to draw a musical staff with clefs, notes, etc. in the Wolfram Language?
E.g., a simple grand staff like this one:
Any links to relevant paclets, ResourceFunctions, etc. would be ...
1
vote
0
answers
24
views
How to evaluate text-to-speech models in WL
There are a many solid options for text-to-speech (TTS) now in SpeechSythesize and from API providers in general. How might I use Mathematica to compare the quality ...
2
votes
0
answers
73
views
How to play sound in Wolfram Cloud?
I want to play the sound on Wolfram Cloud.
Sound[Table[SoundNote[i,0.1,"Violin"],{i,0,12}]]
The Wolfram Cloud Public address is as follows.
https://www....
2
votes
2
answers
158
views
How to replicate a SoundNote using Play in Wolfram language?
I am trying to precisely replicate SoundNote of different frequencies using the Play function. I am using common notes from Western music theory as a starting point and then will venture off into ...
22
votes
2
answers
599
views
How can I interrupt Speak?
I want to use an event handler to stop speaking:
Speak[ExampleData[{"Text", "DonQuixoteISpanish"}]]
The only way I can stop this is by restarting mathematica!
2
votes
1
answer
61
views
How to speak two sentence and join
I want mathematica to read two sentences and join these them together, how can I do that?
For example
a = "seternce a";
b = "seternce b";
The ...
0
votes
1
answer
75
views
Splitting an audio into multiple segments based on the pauses
I am not an expert in mathematica, I wanted to Split an audio into multiple segments based on the pauses. I asked AI if that is possible, it said: "it is possible". It provided me a code for ...
6
votes
0
answers
279
views
Any competitive speech-to-text models?
SpeechRecognize is not very useful compared to most voice transcription engines nowadays, simply too fragile and prone to errors.
I use Otter.ai currently, is there anything competitive to that (or ...
0
votes
1
answer
45
views
AudioCapture and $AudioInputDevices never detect my microphone
My friend and I are both having the same problem. My microphone works fine in all other apps, except Mathematica can't detect any input devices. Has anyone found a solution to this?
Windows 11 Pro. ...
2
votes
1
answer
76
views
How to Import MusicXML Files?
Are there any undocumented or third-party packages or paclets for importing MusicXML?
https://github.com/w3c/musicxml/releases
0
votes
1
answer
78
views
How to get the time series of colored noise obtained by AudioGenerator function?
In the documentation I found a code that plots a Periodogram.
...
4
votes
1
answer
413
views
How to extract audio from a Youtube video
Is it possible to extract audio from a Youtube video using Mathematica? I have looked at this post and figured out that it is impossible to download videos with the Youtube API. Are there any possible ...
0
votes
0
answers
34
views
improve response time for `Sound`
Is it possible to improve response time for the keys of this piano keyboard? As far as I understand, the bottleneck comes at ...
5
votes
2
answers
287
views
Play the sound of $\pi$
How do I play the sound of $\pi$?
There is code for the sound of random integers in $(-1,1)$.
...
0
votes
1
answer
73
views
How to end the sound that is being play?
I'm trying to imitate the way that piano makes a sound and I create a DynamicModule to be the key like the following code:
...
4
votes
2
answers
400
views
Split audio by repeated short sound
I have a long mp3 audio file in which a particular short sound repeats. Is it possible in Mathematica to split the initial mp3 file into several mp3 files that end by this short delimiting sound?
Here ...
10
votes
2
answers
2k
views
Why does Mathematica take so long to produce this sound?
Mathematica is behaving very slow, but it is not like I could compare, as the speed has always been like this. The following ran in 58.64 seconds. Is this normal? How can I speed it up?
...
2
votes
1
answer
101
views
Can I write a code to play the score?
When I input a score image of music, can I write a code to play it?
I'd like ideas for code writing.
5
votes
1
answer
290
views
'Speak' command does not work
I have Mathematica 12.1.0.0. When I execute the command
Speak["Hello"]
I hear nothing. In the earlier versions of the software, Mathematica would 'speak' the words/string inside the 'Speak'...
12
votes
3
answers
1k
views
Realtime audio processing using Dynamic
Can I make real time audio processing with Mathematica in the same way I can do with images using Dynamic[CurrentImage[]].
I know that is possible to use ...
1
vote
1
answer
161
views
How to get DFT from Sound/Audio/Image?
When I'm trying to do Discrete Fourier Transform or just get a ListPlot of values from Sound object, I get error message..
I understand that Fourier command (and ListPlot of course) works only with ...
1
vote
1
answer
123
views
Extract the latent space learned from a Neural Network
I would like to visualize and cluster vectors learned in the latent space of a Neural Network.
I am trying to cluster audio tokens, but I don't know what they represent. So the task is to ...
2
votes
1
answer
99
views
Converting Audio of Paced breathing to plot
This is for a research project on meditation. A music-type person composed for me an audio for paced breathing, which consists of some undulating tones. I would like to convert it to a smooth ...
5
votes
2
answers
145
views
Full list of symbols not supported in the cloud?
I planned to use AudioCapture[] in a cloud notebook and just found out it’s not supported. There used to be a convenient “not in the cloud” icon in a symbols ...
1
vote
0
answers
63
views
Break Wine Glass Using Mathematica [duplicate]
I will be running a demonstration for high school students in a couple of weeks. I’m hoping to introduce them to differential equations by using mathematics to generate a sound wave to break a wine ...
3
votes
1
answer
329
views
Audio Digital Signal Processing
Resource and strategy request
I want to identify resources and strategies to implement a Mathematica based solution for audio digital signal processing (DSP) and digital to analog conversion (DAC).
...
0
votes
0
answers
42
views
Sound issues on Win 11 (?)
I have an "animation" which uses Manipulate(manipulates time) and I want to play sound at the specific times. On my PC (Win10) it works smoothly and ...
13
votes
1
answer
602
views
Wolfram Neural Net Repository Questions
I was a research scientist in the machine learning team, and mostly involved with the neural net repository.
3
votes
1
answer
97
views
How can I save the output from AudioRecord?
I'm trying to save a recording using AudioRecord. My recording gets overwritten even if I save the output in a fresh cell. This illustrates the issue:
...
0
votes
0
answers
65
views
List of instruments for Sound
I am programming a littele piece of music using Sound[] and I have used sound primitives like "Violin", "Piano", "Organ".
Can you help me to find a complete list of these ...
24
votes
5
answers
4k
views
Is it possible to use Mathematica to record sound and/or vision?
I think the title says it all. I know about ImageCapture which seems to capture stills.
Can ImageCapture be made to capture a ...
6
votes
1
answer
436
views
Problem with Spectrogram
Some time ago I wrote a program to analyse a short segment of music and plot as a spectrogram in Mathematica. It allows one to find the notes in a weird chord for example. The example below is from ...
1
vote
1
answer
123
views
Speak[] function using Wolfram Cloud
I wrote a program for practicing note identification on a guitar:
...
2
votes
0
answers
86
views
Using Mathematica as an alarm clock by scheduling a sound file to play at a certain time [closed]
With Mathematica 12.2 I can import a sound file like this:
f = Import["F:\\mysound.mp3", "Sound"];
and play it like this:
...
2
votes
0
answers
64
views
When should I use Audio vs Sound Data types?
It seems like mathematica has 2 related data types Audio and sound.
Why is there 2 separate data types? When would I use one versus the other?
Guesses
I know I can convert between them by ...
0
votes
1
answer
45
views
Two sounds by AudioGenerator at the same time
I am learning how to generate/combine sounds using Mathematica in order to show that sounds cancel at some phases. As an exploratory example, I have
...
5
votes
1
answer
232
views
Why does the audio become longer after importing it?
I was making a video by combining some images and this audio, when I encounter the problem:
I need to get the duration of the audio, and when I use Duration ...
6
votes
2
answers
311
views
Music animations
I've been tempted to use Mathematica to create some artistic musical animations. That is, if I have a music file, I want to be able to edit, for example, its waveform animation. For example, get ...
5
votes
1
answer
354
views
What is 0 dB in Periodogram?
Consider some sound:
ViolinNote = Sound[SoundNote["G", 1, "Violin"]]
We may plot the periodogram:
...
2
votes
1
answer
154
views
Play two sounds at the same time in mathematica. For example the inventions of Bach NO.8
I use mathematica to play the Inventions No8 by Bach. I want to play the two parts (by right and left hands )at the same time. But I don't know how to do it. Can you help me? Thank you!
...
11
votes
1
answer
314
views
Generating random sequence of integers with ordering constraints
I would like to write a Mathematica routine for generating random musical melodies that obey (some of) the constraints of traditional tonal harmony. For simplicity's sake, I'm interested only in ...
9
votes
1
answer
305
views
How to visualize overtones in Mathematica?
I would like to visualize the difference in sounds extracted by different musical instruments, which is due to different overtones. In order to do this, I define the following samples:
...
0
votes
0
answers
113
views
How do I loop audio playback automatically?
(Many of the Audio* symbols and functionality are still mostly experimental, so I understand that not all the kinks might be worked out yet. Still, I'd like to try ...
5
votes
2
answers
898
views
I believe Beep uses the system sound which is obnoxious and rude. How does one create a friendlier less intrusive sound?
Beep is a terrible sound for alerting when a background task has successfully completed. It was primarily designed for errors or when a task fails. That's why it's ...
10
votes
2
answers
299
views
Manipulate a list representing Bach's Prelude in C
Bach's Prelude in C is repetitious in an easily modelable manner: Each of the first 32 bars is structured so that, if given the first 5 notes, you can construct the entire 16 note bar by appending ...
1
vote
1
answer
65
views
How to get correct note timings when importing multi-track Midi files?
I have observed when importing midi files with more than one track, the times for every track except for the first one are sped up.
for example,
...
5
votes
2
answers
207
views
How to get the image from output of Sound[]
Sound[] generates a visual representation of notes. I would like to extract that image, only notes, without controls and borders. How can I do it?
Take this example
...
2
votes
1
answer
77
views
How to remove the waveform box for midi Sound?
For midi sounds, the bottom box in the DisplayForm is always blank, I'd like to be able to remove it:
Sound[{SoundNote["C"], SoundNote["G"]}]
2
votes
0
answers
93
views
How to create a iOS Ringtone from Mathematica
Does anyone have any idea how to create a ringtone for an iOS phone from Mathematica? It appears to be a very (unnecessarily) complicated process, that Apple has recently obfusticated even more by ...