亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sphere.doc

?? speech signal process tools
?? DOC
?? 第 1 頁 / 共 3 頁
字號:
	libsp.a       - user level SPHERE functions			include compression code	libutil.a     - SPHERE-internal functionsBoth libraries must be 'linked' for successful use of SPHERE.During the installation process, the source code for theselibraries is placed in the 'lib' directory of the distributionhierarchy.   User programs must include the following line in order to linkwith the SPHERE libraries:	#include <sp/sphere.h>This include file references all of the required library files.To compile a program, such as the command-line SPHERE utility,'w_decode', which is found in the 'src/prog' directory, executethe following command:	cc -L<INSTALL_DIR>/nist/lib -I<INSTALL_DIR>/nist/include \		-o w_decode w_decode.c -lsp -lutil -lm        where "INSTALL_DIR" is the directory where the SPHERE library        source code is located.If an unresolvable error occurs in compiling a program which uses theSPHERE library, you may send a bug report as specified in the 'BugReports' section and someone will assist you.VII.  Example Interface Library UsageExample 1: To load the embedded shorten-compressed 2-byte-per-samplePCM file, "file.wav", into memory in its uncompressed form.    SP_FILE *sp;    short *waveform;    long channel_count, sample_n_bytes, sample_count;    int wave_byte_size, total_samples;    if ((sp = sp_open("file.wav","r")) != (SP_FILE *)0) {        fprintf(stderr,"Error: Unable to open SPHERE file %s\n","file.wav");        return(-1);    }    if (sp_h_get_field(sp,"channel_count",T_INTEGER,&channel_count) > 0)	return(-1);    if (sp_h_get_field(sp,"sample_n_bytes",T_INTEGER,&sample_n_bytes) > 0)	return(-1);    if (sp_h_get_field(sp,"sample_count",T_INTEGER,&sample_count) > 0)	return(-1);    total_samples=sample_count * channel_count;    wave_byte_size=sample_n_bytes * total_samples;    if ((waveform=(short *)malloc(wave_byte_size)) == (short *)0){        fprintf(stderr,"Error: Unable to allocate %d bytes for the waveform\n",                       wave_byte_size);        exit(-1);    }        if (sp_read_data(waveform,sample_n_bytes,total_samples,sp) !=                     total_samples){        fprintf(stderr,"Error: reading speech waveform\n");	sp_return_status(stderr);        exit(-1);    }                     .                     .                     .    sp_close(sp);  /* deallocates the header & buffers */Example 2: To load a single-channel ulaw file, "ulaw.wav", and convertit to a 2-byte-per-sample PCM format.    SP_FILE *sp;    short *waveform;    long channel_count, sample_n_bytes, sample_count;    int wave_byte_size, total_samples;    if ((sp = sp_open("ulaw.wav","r")) != (SP_FILE *)0) {        fprintf(stderr,"Error: Unable to open SPHERE file %s\n","file.wav");        return(-1);    }    sp_data_mode(sp, "SE-PCM-2");    if (sp_h_get_field(sp,"channel_count",T_INTEGER,&channel_count) > 0)	return(-1);    if (sp_h_get_field(sp,"sample_n_bytes",T_INTEGER,&sample_n_bytes) > 0)	return(-1);    if (sp_h_get_field(sp,"sample_count",T_INTEGER,&sample_count) > 0)	return(-1);    total_samples=sample_count * channel_count;    wave_byte_size=sample_n_bytes * total_samples;    if ((waveform=(short *)malloc(wave_byte_size)) == (short *)0){        fprintf(stderr,"Error: Unable to allocate %d bytes for the waveform\n",                       wave_byte_size);        exit(-1);    }        if (sp_read_data(waveform,sp->sample_n_bytes,total_sample,sp) !=                     total_samples){        fprintf(stderr,"Error: reading speech waveform\n");	sp_return_status(stderr);        exit(-1);    }                     .                     .                     .    sp_close(fp);  /* deallocates the header & buffers */Example 3: To load the SPHERE file, "file.wav", update the contentsof the header, and then change the header on disk.    SP_FILE *sp;    char *db_version, new_db_version[10];    if ((sp = sp_open("file.wav","u")) != (SP_FILE *)0) {        fprintf(stderr,"Error: Unable to open SPHERE file %s\n","file.wav");        return(-1);    }    /******  Delete a header field  ******/    if (sp_h_delete_field(sp,"prompt_id") == 0){        fprintf(stderr,"Error: Unable to delete header field");	fprintf(stderr," 'prompt_id' from %s\n", "file.wav");        fprintf(stderr,"       Field does not exist\n");        break;    } else {        fprintf(stderr,"Error: Unable to delete header field");	fprintf(stderr," 'prompt_id' from %s\n", "file.wav");	sp_return_status(stderr);        return(-1);    }    /******  Add a header field  ******/    if (sp_h_set_real(sp, "signal-to-noise", 55.4) > 0){	fprintf(stderr,"Error: Unable to add the 'signal-to-noise' field ");        fprintf(stderr," %s\n","file.wav");	sp_return_status(stderr);        return(-1);    }    /******  Change a header field  ******/    if (sp_h_get_string(sp, "database_version", &db_version) > 0){	fprintf(stderr,"Error: Unable to get the 'database_version' field from %s\n",	               "file.wav");	sp_return_status(stderr);        return(-1);    }    sprintf(new_db_version,"%3.2f",atof(db_version)+1.0);    if (sp_h_set_string(sp, "database_version", new_db_version) > 0){	fprintf(stderr,"Error: Unable to set the 'database_version' field from %s\n",	               "file.wav");	sp_return_status(stderr);        return(-1);    }    free(db_version);             .             .             .    sp_close(fp);  /* deallocates the header & buffers */VIII.  System-Level Utilities    The following are command-line utilities which have been created using    the SPHERE libraries.  These programs provide the ability to read,    write, and modify SPHERE headers and to compress/decompress    SPHERE-headered waveforms.    h_read [options] [file ...]        reads headers from the files listed on the command line; by default,	output is lines of tuples consisting of all fieldnames and values;	many options modify the program's behavior; see the manual page	"h_read.1";    h_add inputfile outputfile        adds an empty header to the "raw" unheadered speech samples in	inputfile and stores the result in outputfile;    h_strip inputfile outputfile        strips the SPHERE header from inputfile, stores the remaining data in	outputfile; if outputfile is "-", writes the sample data to "stdout";    h_edit [-uf] [-D dir] -opchar fieldname=value ... file ...    h_edit [-uf] [-o outfile] -opchar fieldname=value ... file        edit specified header fields in the specified file(s).  In the first	form, it either modifies the file(s) in place or copies them to the	specified directory "dir".  In the second form, it either modifies	the file in place or copies it to the specified file "outfile".        The "-u" option causes the original files to be unlinked (deleted)	after modification.  The "-f" option forces the program to continue	after reporting any errors.        The "opchar" must be either "S","I", or "R" to denote string,	integer, or real field types respectively.    h_delete [-uf] [-D dir] -F fieldname ... file ...    h_delete [-uf] [-o outfile] -F fieldname ... file        delete specified header fields in the specified file(s). In the first	form, it either modifies the file(s) in place or copies them to the	specified directory "dir".        In the second form, it either modifies the file in place or copies it	to the specified file "outfile".        The "-u" option causes the original files to be unlinked (deleted)	after modification.  The "-f" option forces the program to continue after	reporting any errors.    w_encode [-mvf] -t [ wavpack | shorten | ulaw ]  file_in file_out    w_encode [-mvi] -t [ wavpack | shorten | ulaw ]  file1 file2 . . .         Encode the file as the type defined by the "-t" option.  The program	will use the header information to optimize the compression scheme.	The default operation is to encode the file specified in	"file_in" and place the contents into the file specified in	"file_out".  If the filenames specified in "file_in" or "file_out"	are "-", then stdin and stdout are used respectively.  In addition,	an error will be generated if "file_out" already exists. The "-f"	option causes an existing "file_out" to be overwritten.        The waveform I/O routines automatically convert the byte order of a	file to the host machine's natural format.  The "-m" option forces	the encoding to maintain the original byte order of "file_in".        The "-i" option forces w_encode to replace the input file with it's	encoded version.  When this "in place" option is used, the header is	modified to indicate the new encoding as well.  This option also	allows more than one input file to be specified on the command line.        The "-v" option gives verbose output.    w_decode [-vf] -o [ short_10 | short_01 | short_natural | ulaw ]  file_in file_out    w_decode [-vi] -o [ short_10 | short_01 | short_natural | ulaw ]  file1 file2 . . .         Decode the input file into the output format specified by "-o".  If	the file is already encoded as specified, no action is taken.        w_decode reads the header and sample data and performs conversions on	the output as necessary.  The default operation is to decode the file	specified in "file_in" and place the contents into the file specified	in "file_out".  If the filenames specified in "file_in" or "file_out"	are "-", then stdin and stdout are used respectively.  In addition,	an error will be generated if "file_out" already exists.  The "-f"	option causes an existing "file_out" to be overwritten.        The "-i" option forces w_encode to replace the input file with it's	encoded version.  When this "in place" option is used, the header is	modified to indicate the new encoding as well.  This option also	allows more than one input file to be specified on the command line.        The "-v" option gives verbose output.IX.  Revision HistoryChanges in Release 1.5:	1. New functions were added to the Sphere library:		sp_get_fieldnames()		sp_get_type()		sp_get_size()		sp_is_std()		(see the sphere library man page for descriptions)	2. h_read: command line options were changed	3. h_strip: writes to stdout if destination is "-"	4. man page for h_readChanges in Release 1.6:	1. Utilities that use h_modify.c are now much faster in		most cases when editing in-place -- if the size		of the header does not change, the new header is		copied over the old one.	2. Modified sp_write_header() to work when writing to		objects other than files. The function ftell()		was previously used directly on the output		stream to ascertain the number of bytes		in the header; now the header is written		to a temp file to ascertain the header size,		then to the output stream.	3. Modified to sp_open_header() and spx_read_header()		to no longer test if the input file is at		position 0. This will allow reading from		pipes, etc.	4. h_add: can read from stdin and/or write to stdout;		no longer puts any dummy fields in the header.	5. h_strip: can now read from stdin in addition to		writing to stdout.	6. Added h_header and raw2nist to the Sphere package.		They are Bourne shell scripts (/bin/sh) to,		respectively, print file headers and convert raw		data (no header) to Sphere format.	7. Manual pages for commands h_edit, h_delete, h_add,		h_strip and raw2nistChanges in Release 1.7:	1. h_read: added "-C field" option to check that the		specified field(s) is in the headers of all files		on the command line.Changes in Release 2.0 Beta:	1. SPHERE now has a new functional interface to waveform data		and headers.  The unified approach is detailed in the                "C-Language Programmer Interface Library" section.	2. Library libsp.a won't be removed if "make" is interrupted.	3. Using ANSI functions instead of BSD equivalents:		index() -> strchr()		rindex() -> strrchr()		bcopy() -> memcpy()		bzero() -> memset()	4. Include file changes:		<stdlib.h>: rand(), malloc(), realloc(), etc.		<string.h>: replaces <strings.h>		<errno.h>: errno		"getopt.h": getopt(), optind, optarg	5. The function getopt() is now expected to return -1		when there are no more command line arguments		to be parsed. Previously, it was expected  to		return EOF.  resetopt() clears the history state		of getopt() to enable re-using getopt().	6. New programs "w_encode" and "w_decode" allow sampled                waveform data to be compressed (w_encode) or                decompressed (w_decode) using either the "wavpack" or                "shorten" algorithms.	7. Waveform encoding functions added including a set                to allow data to be compressed using the "wavpack" or		"shorten" algorithms with input and/or output		data coming from memory or a file pointer, and		a set of analogous functions for decompression.	Changes in Release 2.0 Beta 2:	1. Corrected Known Software Bugs:		a. The function 'set_data_mode' should have been named 		   'sp_set_data_mode'.		b. Waveforms without checksums are now readable.		c. the installation process was updated.	2. Function Changes:		a. The function 'sp_return_status' was renamed to 		   'sp_print_return_status'.		b. A new function was written 'sp_get_return_status'		   which allows the programmer to retrieve the return		   status of the last function call.		   	3. Merged the libraries to simplify the linking procedures.		- see the Linking to the SPHERE library Section of the		  SPHERE Manual	4. Re-designation of required header fields.		- see the File Format Definition Section of the		  SPHERE Manual	5. Decompression will use a temporary file if the waveform size	   is larger the a specified byte size.  (Details of modifying the	   variable will be added to the installation script in a future	   release.)	6. Addition of 'shortpack' decompression to facilitate reading	   of the WSJ0 Write-Once CD-ROMS.X.  Bug ReportsPlease send bug reports to 'sphere-bugs@jaguar.ncsl.nist.gov'.  Or viapostal-mail to:	Jon Fiscus	National Institute of Standards and Technology	Bldg. 225, Room A-216	Gaithersburg, MD 20899XI.  Supported HardwareThe SPHERE functions and programs have been developed in Sun-C on aSun Microsystems workstation running SunOS 4.1.1 and 4.1.2.  To date,SPHERE 2.0 has been tested on SPARC-based UNIX systems, NeXT workstations, and DEC Alpha Workstations.  It is currently beingtested on a SGI Indigo workstation.Once SPHERE 2.0 has completed Beta testing, NIST plans to convertingit to ANSI C for maximum portability.  NIST then plans to port SPHEREto the PC platform.XII.  DisclaimerThese software tools have been developed for use within the ARPAspeech research community.  Although care has been taken to ensurethat this software is complete and error-free, it may not meet allusers' requirements.  As such, it is made available to the speechresearch community at large, without endorsement, or express orimplied warranties by the National Institute of Standards andTechnology, the Department of Defense, or the United StatesGovernment.XIII.  AcknowledgementsThe SPHERE file format was designed by John Garofolo at NIST.The SPHERE-internal low-level functions were designed by John Garofoloand Stanley Janet and coded by Stanley Janet at NIST.The SPHERE 2.0 Programmer Interface Library was designed by JohnGarofolo and Jon Fiscus and coded by Jon Fiscus at NIST.The Shorten compression algorithm was developed and implemented byTony Robinson at Cambridge University.The Wavpack compression algorithm was developed and implemented byDoug Paul at MIT Lincoln Laboratories.NIST would like to thank those people who provided constructivesuggestions during the design of SPHERE 2.0. and NIST would like toparticularly thank Tony Robinson for his help in integrating 'shorten'into the SPHERE interface.

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
99久久99久久精品国产片果冻| 国产福利一区二区三区视频| 色综合咪咪久久| 国产精品毛片a∨一区二区三区| 激情都市一区二区| 精品av久久707| 经典三级一区二区| 精品久久久久久久久久久久久久久久久 | 欧美一区二区视频在线观看2020 | 国产在线精品一区二区| 精品日产卡一卡二卡麻豆| 国产综合色产在线精品| 欧美国产视频在线| 色88888久久久久久影院野外| 视频一区二区国产| 99在线精品观看| 日韩欧美视频在线| 免费欧美日韩国产三级电影| 91精品国产一区二区三区香蕉| 日韩国产欧美在线观看| 欧美日本免费一区二区三区| 午夜精品视频一区| 6080国产精品一区二区| 日本视频在线一区| 精品福利av导航| 国产一区二区三区久久悠悠色av| 国产亚洲一区字幕| 高清国产一区二区三区| 国产精品午夜久久| 99视频在线精品| 亚洲精品伦理在线| 555www色欧美视频| 精品一区二区免费| 中文一区在线播放| 99re这里只有精品6| 亚洲一区二区免费视频| 日韩一区二区视频| 狠狠色伊人亚洲综合成人| 国产日产欧美精品一区二区三区| 91网站最新地址| 午夜精品一区二区三区免费视频| 日韩午夜激情电影| 国产精品一区免费在线观看| 国产精品国产自产拍在线| 日本丶国产丶欧美色综合| 日韩精品色哟哟| 国产欧美久久久精品影院| 色综合中文字幕国产 | 一本大道久久a久久综合| 亚洲午夜久久久久| 日韩欧美黄色影院| 成人动漫一区二区在线| 亚洲国产一区二区三区| 精品久久久久久久久久久久久久久 | 亚洲国产综合人成综合网站| 日韩限制级电影在线观看| 懂色av中文一区二区三区| 一二三四区精品视频| 欧美xxx久久| eeuss影院一区二区三区| 天天色 色综合| 国产午夜精品一区二区三区四区| 色94色欧美sute亚洲线路二| 日韩av一区二区在线影视| 国产日韩欧美精品一区| 欧美性色欧美a在线播放| 精品一区二区免费视频| 伊人开心综合网| 久久婷婷国产综合国色天香| 色噜噜狠狠一区二区三区果冻| 久久99国产精品免费| 亚洲精品视频自拍| www激情久久| 欧美性大战久久| 国产ts人妖一区二区| 亚洲成a人片综合在线| 国产三级久久久| 7777精品久久久大香线蕉| av在线一区二区三区| 久久99九九99精品| 亚洲国产cao| 国产精品免费丝袜| 日韩欧美在线综合网| 一本一本大道香蕉久在线精品| 国产一区亚洲一区| 亚洲综合色视频| 中文字幕成人在线观看| 欧美一区二区三区免费视频 | 国产精品一区二区黑丝| 性久久久久久久久久久久| 国产精品人人做人人爽人人添| 3atv在线一区二区三区| 91视频.com| 国产高清一区日本| 免费人成精品欧美精品| 亚洲妇女屁股眼交7| 中文字幕一区二区三区四区不卡| 精品久久久久一区| 欧美喷水一区二区| 色综合久久66| 不卡的av电影在线观看| 国产一区二区福利视频| 日韩精品每日更新| 亚洲高清不卡在线| 亚洲激情网站免费观看| 中文字幕一区av| 久久久.com| 精品成人一区二区三区| 91精品啪在线观看国产60岁| 91久久久免费一区二区| 91在线无精精品入口| 成人一道本在线| 国产露脸91国语对白| 美日韩一区二区| 天堂久久久久va久久久久| 亚洲一二三区不卡| 亚洲女与黑人做爰| 国产精品久久久久久久裸模| 久久久久成人黄色影片| 亚洲精品一区二区三区99| 欧美电视剧免费全集观看| 欧美一级高清片在线观看| 在线不卡a资源高清| 7777精品久久久大香线蕉| 欧美精品高清视频| 欧美日韩激情在线| 欧美美女黄视频| 欧美剧情电影在线观看完整版免费励志电影 | 亚洲欧洲美洲综合色网| 国产精品国产三级国产a| 国产精品三级在线观看| 中文字幕免费在线观看视频一区| 国产午夜亚洲精品理论片色戒| 久久精品人人做| 中文字幕av资源一区| 亚洲欧洲国产日韩| 亚洲免费av在线| 亚洲国产日韩一级| 日韩专区中文字幕一区二区| 免费亚洲电影在线| 狂野欧美性猛交blacked| 精品在线播放午夜| 国产美女av一区二区三区| 国产成人综合在线| 不卡在线视频中文字幕| 91在线免费播放| 在线国产亚洲欧美| 欧美日韩一级视频| 91精品国产色综合久久不卡电影| 日韩女优毛片在线| 久久久久久久久久久久久女国产乱 | 亚洲精品一区二区三区香蕉| 国产亚洲精品aa| 国产精品乱人伦一区二区| 18成人在线观看| 一区二区三区波多野结衣在线观看| 亚洲一二三四久久| 日韩福利电影在线| 国产永久精品大片wwwapp| 成人av动漫网站| 在线观看日韩国产| 欧美一区二区在线看| 久久综合九色综合97婷婷| 国产精品日韩成人| 亚洲自拍偷拍网站| 男女激情视频一区| 国产精品资源在线看| 91在线免费看| 555www色欧美视频| 久久精品夜夜夜夜久久| 国产精品初高中害羞小美女文| 一区二区在线看| 久久99国产精品免费网站| 成人黄色综合网站| 欧美日韩一级片网站| www欧美成人18+| 亚洲黄色小说网站| 麻豆一区二区三区| 成人网在线播放| 欧美精品在欧美一区二区少妇| 亚洲综合在线五月| 国产精品婷婷午夜在线观看| 精品久久久影院| 欧美欧美欧美欧美首页| 欧美午夜视频网站| 精品国产百合女同互慰| ...xxx性欧美| 男男gaygay亚洲| av欧美精品.com| 欧美一级在线观看| 国产精品美女久久久久aⅴ国产馆 国产精品美女久久久久av爽李琼 国产精品美女久久久久高潮 | 精品999在线播放| 亚洲精品成人少妇| 精品一区二区影视| 色天使色偷偷av一区二区 | 欧美三级在线看| 26uuu精品一区二区| 亚洲一区二区三区免费视频| 国产一区二区三区高清播放| 欧美日韩中字一区|