Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
clip.f
Package: celp_3.2a.tar.gz [view]
Upload User: szhypcb168
Upload Date: 2007-01-06
Package Size: 2187k
Code Size: 1k
Category:
Voice Compress
Development Platform:
Unix_Linux
- C==========================================================================
- C
- C ROUTINE
- C clip
- C
- C FUNCTION
- C determine if speech is clipped
- C
- C SYNOPSIS
- C function clip(s, l)
- C
- C formal
- C
- C data I/O
- C name type type function
- C -------------------------------------------------------------------
- C s real i input speech
- C l int i length of input speech
- C clip logical o clip flag
- C
- C==========================================================================
- C*-
- function clip(s, l)
- implicit undefined(a-z)
- integer l
- real s(l)
- logical clip
- real sum
- integer i, count
- c
- c Count number of clippings and sum their magnitudes
- c
- count = 0
- sum = 0.
- do 69 i = 1, l
- if (abs(s(i)) .gt. 32768.0) then
- count = count + 1
- sum = sum + abs(s(i))
- end if
- 69 continue
- c
- c Clipping heuristics (could also use energy, delta energy, etc.)
- c
- clip = .false.
- if ((count .ge. 10) .or. (count.ge.5 .and. sum.gt.1.e6)) then
- clip = .true.
- end if
- return
- end