#!/usr/bin/perlforeach $var(Glob("*.wav")){ #$var =~/.* (00.*). wav/; $var=~ /.*(xx\d\d). wav/; $Newvar='spkcontext_zj_'.$1.'. wav'; system("MV $var $Newvar"); Print "Now is processing $var \ n";}Print "Over \ n";
To use a more accurate regular expression, do not use fuzzy regular expressions:
functions can greatly simplify the workload of programming.
The most frequently used library functions include:
(1) strcpy
(2) memcpy
(3) memset
Question 6: The following table lists the known WAV file formats. Open a WAV file, organize the WAV file header in an appropriate data structure, and parse the information in W
iOS Project redundant resource scan script As iOS projects continue to iterate, the number of redundant files in the app grows and the app size continues to grow, and it's time to test the app's redundant resources and thin the app.How to use:1. Operating environment for Mac, first prepare the project source code;2. Create a new check.sh, paste the following code into the check.sh and save; (TXT file can be changed to sh suffix)#!/bin/SH ##### Several cases that the scripts does not work:#####1
Conversion method "Turn" between common audio formats under LinuxThe following is a brief introduction to the conversion method between common audio formats for Linux environments:MP3 Related tools: lameOGG Related tools: Vorbis-toolsAPE Related tools: MacFLAC related tools: FLACWAV Related tools: ShntoolBin/cue Image segmentation: Bchunk1.mp3 and WAV convert each otherMP3-wavLame--decode WAV-MP3Lame-b Shnt
PHP file type comparison table! It's convenient to see what type of file it is. such as GIF is the image/gif type
Ie
ID suffix name PHP recognized file type
0 gif image/gif
1 jpg image/jpeg
2 PNG Image/png
3 BMP Image/bmp
4 PSD Application/octet-stream
5 ico Image/x-icon
6 rar Application/octet-stream
7 Zip Application/zip
8 7z Application/octet-stream
9 exe Application/octet-stream
Ten AVI Video/avi
One rmvb APPLICATION/VND.RN-REALMEDIA-VBR
3GP Application/octet-stream
Applicati
C # Get wave file header information
Some days ago in the forum asked, no one answered, today is free to write their own
File format based on website
http://www.moon-soft.com/program/FORMAT/
Using System;
Using System.IO;
Using System.Text;
Namespace WAV
{
Summary description for Wav.
public class Wav
{
Public
Recently made a voice changer of the project, which involves a lot of audio-related knowledge, afraid of a long time to remember, write down the memo.1. Encoding of The VoiceVoice recording when to choose an encoding format, because the mobile side of the reason, this encoding format needs to meet the compression ratio, sound quality is better (at least can be heard after the voice), but also the difficulty of coding small.We chose several formats earlier: AMR, Speex, AAC,
images. You only need to input your MP3 file set. In fact, using a large song database that has been marked as a specific genre can improve the effectiveness of the solution, but for simplicity, I want to keep this solution completely independent. Finally, although there are many formats of digital music (MP3, WMA, M4A, OGG, etc.), I only pay attention to MP3 files to simplify it. In fact, the algorithm developed in this article can work well for audio in other formats, as long as the audio in
function is required, the value can be zero.DWORDdwcallbackinstance, the data type passed to the callback mechanism, which is not used for window callbacksDWORDfdwopenz indicates the type of data passed dwcallback, such as a time handle or a function pointer);This function provides a buffer for the audio input deviceMmresult Waveinprepareheader(Hwaveinhwi, sound input device handleLpwavehdrPWH, pointing to the WAVEHDR structure, identifies the buffer to be prepared.Size of the WAVEHDR structure
Question 5: Write a function to shift n loops of a char string to the right. For example, if "abcdefghi" is n = 2, it should be "hiabcdefgh" after the shift"
The function header is as follows:// Pstr is a pointer to a string ending with '\ 0'
// Steps is the n that requires moving
Void loopmove (char * pstr, int steps){// Fill in...}
Answer:
Answer 1:Void loopmove (char * pstr, int steps)
{
Int n = strlen (pstr)-steps;
Char TMP [max_len];
Strcpy (TMP, pstr + n );
Strcpy (TMP + steps, pstr );
*
programming.
The most frequently used library functions include:
(1) strcpy
(2) memcpy
(3) memset
Question 2: The following table lists the known WAV file formats. Open a WAV file, organize the wav file header in an appropriate data structure, and parse the information in WAV format.
Wave file format description
is derived from the UITypeEditor class. UITypeEditor is the base class of all interfaces during design.
In this way, you can achieve the purpose of a file dialog box, but if you want to specify only one file type, such as "WAV" file, you have to derive FileNameEditor and override the relevant methods.Public class SoundFileEditor: System. Windows. Forms. Design. FileNameEditor{Protected override void InitializeDialog (OpenFileDialog openFileDialog){Ba
"Start" menu, select "Control Panel" "sound, voice, and audio devices ". The screen displays a list of three tasks. Select "change sound solution" in the second line ". The "Sound and audio device properties" window is displayed on the "sound" tab.
At the bottom of the window, a dialog box labeled "Program Event" appears, including all windows events that can specify sound. A small speaker icon is displayed in front of a sound connection event. Click the event with a graphic icon,
Author: salysystemic
Address: http://www.codeproject.com/KB/audio-video/PlayWavFiles.aspx
Content summary
This articleArticleDemonstrate how to embed WAV audio resource files into ApplicationsProgramAnd play it through the system. media class library. Introduction
This article demonstrates how to embed a WAV audio resource file into an application and play it through the system. media class library.
the standard library functions. When necessary, referencing the library functions can greatly simplify the workload of programming.
The most frequently used library functions include:
(1) strcpy
(2) memcpy
(3) memset
Question 6: The following table lists the known WAV file formats. Open a WAV file, organize the wav file header in an appropriate data structure, a
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.