KR19980050652A - Voice signal storage and playback method of computer using portable communication device - Google Patents

Voice signal storage and playback method of computer using portable communication device Download PDF

Info

Publication number
KR19980050652A
KR19980050652A KR1019960069497A KR19960069497A KR19980050652A KR 19980050652 A KR19980050652 A KR 19980050652A KR 1019960069497 A KR1019960069497 A KR 1019960069497A KR 19960069497 A KR19960069497 A KR 19960069497A KR 19980050652 A KR19980050652 A KR 19980050652A
Authority
KR
South Korea
Prior art keywords
voice
signal
frame
computer
packet
Prior art date
Application number
KR1019960069497A
Other languages
Korean (ko)
Inventor
신철선
Original Assignee
구자홍
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 구자홍, 엘지전자 주식회사 filed Critical 구자홍
Priority to KR1019960069497A priority Critical patent/KR19980050652A/en
Publication of KR19980050652A publication Critical patent/KR19980050652A/en

Links

Landscapes

  • Telephone Function (AREA)

Abstract

본 발명은 디지털 셀룰러 폰(cellular phone), 개인 휴대통신(PCS), GSM 등의 디지털 휴대용 통신기기(이하, 휴대폰이라 함)에 내장된 음성 부호기(Vocoder)를 이용하여 음성 신호를 실시 간으로 부호화(real-time encoding)함으로써 음성신호를 컴퓨터에 저장하거나 재생할 수 있는 방법에 관한 것이다.The present invention encodes a voice signal in real time using a voice coder (Vocoder) built in a digital portable communication device (hereinafter referred to as a cellular phone) such as a digital cellular phone, a personal mobile communication (PCS), and a GSM. The present invention relates to a method of storing or playing back a voice signal on a computer by real-time encoding.

본 발명은 음성정보를 입력하기 위한 마이크와, 아날로그/디지털 변환회로와, 음성부호화 알고리즘이 구현된 음성부호기와, CPU와, 음성정보 송수신을 위한 송수신기를 구비하는 휴대용 통신기기를 이용하여 킴퓨터의 저장장치에 음성 데이터를 저장하는 방법에 있어서, 마이크를 통해 입력된 아날로그 음성신호를 디지털 신호로 변환하는 단계와, 디지털 변환된 음성신호 중 1 프레임의 음성신호를 압축 부호화하는 단계와, 압축 부호화된 신호를 패킷화하여 컴퓨터에 전송하는 단계와, 휴대폰으로부터 수신된 패킷에 에러가 있는지를 검사하여 에러가 있으면 휴대폰에 NAK신호를 전송하고, 에러가 없으면 ACK신호를 전송하는 단계와, 컴퓨터로부터 ACK 신호를 수신하면 패킷 카운터를 증가시키는 단계와, 컴퓨터로부터 ACK신호를 받지 못하거나 NAK신호를 수신하면 1 프레임의 시간이 경과하였는지를 검사하는 단계와, 검사결과 1 프레임의 시간이 경과하였으면 패킷 카운터를 증가시키고,1 프레임의 시간이 아직 경과하지 않았으면 컴퓨터로부터의 응답을 대기하는 단계와, 휴대폰에서 송신된 패킷 카운터가 2 이상으로 증가했는지를 검사하는 단계와, 검사결가 패킷 카운터가 2이상으로 증가하지 않았으면 수신 패킷에저 음성 프레임 데이터를 추출하여 저장장치에 저장하고, 패깃카운터가 2이상으로 증가하였으면 이전 프레임과 현재 받은 프레임으로 손실된프레임을 보간하여 저장장치에 저장하는 단계를 포함한다.The present invention relates to a Kim computer using a portable communication device including a microphone for inputting voice information, an analog / digital conversion circuit, a voice encoder implementing a voice encoding algorithm, a CPU, and a transceiver for transmitting and receiving voice information. A method of storing voice data in a storage device, the method comprising: converting an analog voice signal input through a microphone into a digital signal, compressing and encoding a voice signal of one frame of the digitally converted voice signal, and performing compression encoding Packetizing the signal to a computer, checking whether there is an error in the packet received from the mobile phone, and transmitting an NAK signal to the mobile phone if there is an error, and transmitting an ACK signal to the mobile phone if there is an error; Increments the packet counter when it receives a signal, and receives no ACK signal or Checking whether the time of one frame has elapsed; increasing the packet counter if the time of one frame has elapsed; and waiting for a response from the computer if the time of one frame has not elapsed; Checking whether the packet counter transmitted from the controller has increased to 2 or more, and if the check result packet counter has not increased to 2 or more, extracts the received voice frame data from the received packet and stores it in the storage device, and the pegcounter is set to 2 or more. If it is increased, interpolating the frames lost to the previous frame and the currently received frame and storing the interpolated frames in the storage device.

Description

휴대용 통신기기를 이용한 컴퓨터의 음성신호 저장방법 및 재생방법Voice signal storage and playback method of computer using portable communication device

도 1는 컴퓨터를 이용한 종래의 방법에 의한 음성신호의 샘플링 및 저장과 재생을 설명하기 위한 블록도.BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is a block diagram for explaining sampling, storage and reproduction of an audio signal by a conventional method using a computer.

도 2는 컴퓨터의 음성 부호기를 이용한 증래의 방법에 의한 음성신호 부호화 및 저장 방법의 개념을 설명하기 위한 블록도.Fig. 2 is a block diagram for explaining the concept of a speech signal encoding and storage method using a speech method using a computer speech encoder.

도 3는 본 발명에 따라 휴대폰을 이용하여 음성신호를 컴퓨터에 저장하는 것을 설명하기 위한 블록도.3 is a block diagram illustrating the storage of a voice signal in a computer using a mobile phone according to the present invention.

도 4는 본 발명에 따라 컴퓨터에 저장된 음성신호를 휴대폰을 이용하여 재생하는 것을 설명하기 위한 블록도.Figure 4 is a block diagram illustrating the reproduction of a voice signal stored in a computer using a mobile phone in accordance with the present invention.

도 5는 휴대폰의 CPU와 음성부호기에서 이루어지는 음성신호 압축 및 저장방법을 설명하기 위한 순서도.5 is a flowchart illustrating a voice signal compression and storage method performed in a CPU and a voice encoder of a mobile phone.

제 6 도는 컴퓨터에서 이루어지는 음성신호 압축 및 저장방법을 설명하기위한 순서도.6 is a flowchart illustrating a method of compressing and storing a voice signal in a computer.

도 7는 휴대폰의 CPU와 음성부호기에서 이루어지는 음성신호 복호화 및 재생방법을 설명하기 위한 순서도.7 is a flowchart for explaining a voice signal decoding and reproduction method performed in a CPU and a voice encoder of a mobile phone.

도 8는 컴퓨터에서 이루어지는 음성신호 복호화 및 재생방법을 설명하기 위한 순서도.8 is a flowchart illustrating a method of decoding and reproducing a voice signal in a computer.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

1:마이크 2:아날로그/디지털 변환기1: microphone 2: analog-to-digital converter

3:음성 부호기 4,9:CPU3: Voice encoder 4,9: CPU

5,8:UART(범용 비동기 송수신기) 6,7:통신포트5,8: UART (Universal Asynchronous Transceiver) 6,7: Communication port

10:저장장치 11:스피커10: Storage 11: Speaker

본 발명은 디지털 셀룰러폰(cellular phone), 개인 휴대통신(PCS), GSM등의 디지털 휴내용 통신기기(이하, 휴대폰이라 함)에 내장된 음성 부호기(Vocoder)를 이용하여 음성 신호를 실시간으로 부호화(real-time encoding)함으로써 음성신호를 컴퓨터에 저장하기나 재생할 수 있는 방법에 관한 것이다.The present invention encodes a voice signal in real time using a voice coder (Vocoder) built in a digital mobile communication device (hereinafter referred to as a mobile phone) such as a digital cellular phone, a personal mobile communication (PCS), and a GSM. (real-time encoding) is a method for storing or reproducing voice signals on a computer.

종래부터 컴퓨터를 이용하여 음성신호를 저장하는 방법이 널리 이용되어 왔는 바, 주로 사운드 카드를 컴퓨터에 내장하여 이를 이용함으로써 음성신호를 컴퓨터의 저장장치에 저장하였다가 필요시 이를 재생하는 방법이 일반적이였다.Conventionally, a method of storing a voice signal using a computer has been widely used, and a method of storing a voice signal in a storage device of a computer by using a sound card built in the computer and reproducing it when necessary is common. .

이러한 종류의 종래의 기술에 대하여 도 1 및 도 2를 참조하여 보다 상세히 설명하기로 한다. 도 1는 컴퓨터에 사운드 카드를 내장하여 음성신호를 샘플링, 저장하고 재생하는 것을 설명하기 위한 블록도이다. 도 1를 통해 알 수 있는 바와 같이 컴퓨터를 이용하여 음성신호를 저장하기 위해서는 하드웨어적으로는 통상의 컴퓨터에 사운드 카드와 음성신호의 입출력을 위한 마이크와 스피커가 추가로 구성되고, 소프트웨어적으로는 음성신호를 샘플링하여 저장하고 이를 재생하기 위한 프로그램이 있어야 함을 알 수 있다. 사운드 카드는 통상 CPU를 대신해 사운드 관련 데이터를 처리해주는 전용 칩과 이를 뒷받침해주는 회로로 구성되어 있다. CPU는 컴퓨터 전체에 관련된 데이터 처리를 행하고 전제동작과 운용에 관해 조정역할을 하고, 사운드 카드는 CPU로부터 명령을 받은 이후부터 별도로 동작하여 사운드 관련 데이터 처리를 행한 다음 그 처리결과를 다시CPU에 통보하고 이후에 또 다른 명령을 받아 다시 동작하게 된다.This kind of conventional technology will be described in more detail with reference to FIGS. 1 and 2. 1 is a block diagram illustrating a sampling, storing, and reproducing of a voice signal by embedding a sound card in a computer. As can be seen from FIG. 1, in order to store a voice signal using a computer, a microphone and a speaker for input / output of a sound card and a voice signal are additionally configured in a general computer in hardware. It can be seen that there must be a program for sampling, storing and reproducing the signal. A sound card usually consists of a dedicated chip that processes sound-related data on behalf of the CPU and the circuitry that supports it. The CPU performs data processing related to the whole computer and adjusts the entire operation and operation.The sound card operates separately after receiving a command from the CPU to perform sound-related data processing, and then informs the CPU of the processing result again. After that, it receives another command and starts again.

일반적으로, 사운드 카드는 비트수, 샘플링율(sampling rate), 미디 지원여부, 음의 합성방법에 따라 분류될 수 있는데, 아날로그 음성신호를 컴퓨터에 저장하기 위한 디지털 신호로 저장하는데 필요한 데이터량은 비트수와 샘플링율에 따라 달라지게 된다. 여기에서 비트수란 사운드 내용을 표시하기 위해 나타내는 비트수를 말하는 것으로 8비트,16비트,32비트가 사용되고 있다.8비트 사운드카드라 함은 모든 사운드 정보를 256개(2의 8승)의 비트를 이용해 변조하는 것이라는 의미이다. 또 샘플링율은 컴퓨터의 녹음율이라고도 표현하는데 단위로는 kHz가 사용되고 있다. 만약 사운드 카드가 1초에 10,000번의 음파를 측정한다면(이를 샘플링 작업이라고 함), 이 제품의 샘플링울은 10kHz가 될 것이다.In general, sound cards can be classified according to the number of bits, sampling rate, MIDI support, and sound synthesis.The amount of data needed to store analog voice signals as digital signals for storage on a computer is It depends on the number and sampling rate. Here, the number of bits refers to the number of bits represented to display sound contents, and 8 bits, 16 bits, and 32 bits are used. An 8 bit sound card means 256 bits (8 powers of 2) of all sound information. Means to modulate with. The sampling rate is also referred to as the recording rate of a computer, but kHz is used as a unit. If the sound card measures 10,000 sound waves per second (called sampling), its sampling rate will be 10 kHz.

그러므로 샘플링율이 크면 음질이 뛰어나지만 데이터량이 큰 폭으로 늘어난다는 것을 알 수 있다. 따라서 가장 적은 량의 데이터로 가장 많은 음성정보를 저장하기 위해서는 가장 낮은 수준의 음질을 사용하면 되는데, 가장 낮은 수준의 음질을 사용했을 패의 샘플링율은 8,000 Hz이고 샘플당 비트수는 8비트이다. 그러므로 최저 수준의 음질을 사용했을 경우의 초당 비트수는 64 kbps 가 될 것이고,1 시간 동안 녹음을 한다고 가정했을 매 약 28.8 MB(때가 바이트)의 저장용량이 필요할 것이다.Therefore, if the sampling rate is large, the sound quality is excellent, but the data volume is greatly increased. Therefore, in order to store the most voice information with the smallest amount of data, the lowest level of sound quality may be used. The lowest sampling rate is 8,000 Hz and the number of bits per sample is 8 bits. Thus, using the lowest sound quality, the number of beats per second would be 64 kbps, and you would need about 28.8 MB (times of bytes) of storage per hour for recording.

이하, 컴퓨터가 음성신호를 저장 및 재생하는 과정을 설명하기로 한다.음성신호의 저장과정에서 음성신호를 샘플링(sampling) 또는 녹음하는 프로그램이 실행되면 CPU에 의해 사운드 카드가 구동되고, 사운드 카드는 마이크로부터 음성정보를 받아 그 정보를 비트를 이용하여 변조한 다음 작업이 완료되면 CPU에 작업완료를 보고한다. 그러면 CPU는 처리가 완료된 음성정보를 하드디스크등의 저장장치에 저장한다. 반대로 음성신호의 재생과정에서 음성신호를 재생하는 프로그램이 실행되면, CPU는 하드디스크 등의 저장장치로부터 음성경보를 받아 사운드 카드에 그 재생읕 명령한다. 사운드 카드는 그 음성정보를 아날로그로 변환하여 스피커 등의 출력장치를 통해 외부로 출력한다.도 2는 컴퓨터 내부의 음성 부호기(Vocoder)를 이용하여 음성신호를 부호화하고, 저장하는 개념을 설명하기 위한 블록도이다. 도 2에서, 음성 부호기는 음성 부호화 알고리즘이 구현된 고속의 산술 연산 디지털 신호 처리 칩(digital sjgnal processing chip;DSP 칩)을 구비한다. 도 2에서 음성 부호화 알고리즘을 컴퓨터의 중앙처리장치(CPU)에 의하지 않고 추가의 DSP 칩에 의존하는 이유는 음성 부호화 알고리즘의 복잡도와 연산량이 상당히 크기 때문이다. 즉, CPU 속도가 늦은 경우에는 컴퓨터의 CPU를 통해 음성 부호화 알고리즘을 구현하는 것이 불가능하며, 설령 CPU의 속도가 그것을 층분히 구현할 수 있을 정도로 빠르다고 하더라도 여러 가지 일을 동시에 수행해야하는 CPU의 특성상 음성 부호화 알고리즘은 너무 큰 부하가 되기 때문이다.Hereinafter, a process of storing and reproducing a voice signal by the computer will be described. When a program for sampling or recording the voice signal is executed during the storage of the voice signal, the sound card is driven by the CPU, and the sound card is It receives voice information from the microphone, modulates it using bits, and reports the completion to the CPU when the task is completed. The CPU then stores the completed voice information in a storage device such as a hard disk. On the contrary, when a program for reproducing a voice signal is executed in the course of reproducing the voice signal, the CPU receives a voice alarm from a storage device such as a hard disk and instructs the sound card to reproduce the voice signal. The sound card converts the voice information into an analog and outputs it to an external device through an output device such as a speaker. FIG. 2 illustrates a concept of encoding and storing a voice signal using a voice encoder inside a computer. It is a block diagram. In FIG. 2, the speech coder includes a fast arithmetic arithmetic digital signal processing chip (DSP chip) in which a speech coding algorithm is implemented. In FIG. 2, the reason for relying on the additional DSP chip rather than the CPU of the computer is that the speech coding algorithm is large in complexity and computational amount. In other words, if the CPU speed is low, it is impossible to implement the voice encoding algorithm through the computer's CPU. Even if the CPU speed is fast enough to implement it, the voice encoding algorithm is required due to the nature of the CPU. Is too large a load.

이하, 음성 부호기를 구비한 컴퓨터가 음성신호를 저장 및 재생하는 과정을 설명하기로 한다. 먼저, 음성신호의 저장과정과 재생과정에서 사운드 카드의 기능은 도 1의 경우와 동일하다. 다만, 도 2에서는 사운드 카드가 처리한 음성정보를 CPU가 처리하지 않고 음성부호기에 넘겨줌으로써 음성 부호기(DSP 칩)로 하여금 그 데이터를 실시간으로 부호화 하도록 하여 CPU에 걸리는부하를 더욱 경감하고 있다. 여기에서 실시간 부호화(real-time encoding)라 함은 특정한 시간(t) 동안 입력된 음성 신호 데이러를 t시간 안에 부호화하는 것을말한다. CPU는 이 부호화되어 압축된 음성 데이터를 하드디스크 등의 저장장치에 저장한다. 반대로 음성신호의 재생과정에서는 상기 과정의 역순으로 동작하여 음성신호가 재생된다.Hereinafter, a process of storing and reproducing a voice signal by a computer having a voice encoder will be described. First, the function of the sound card in the process of storing and reproducing a voice signal is the same as that of FIG. However, in FIG. 2, the voice information processed by the sound card is passed to the voice encoder without processing by the CPU so that the voice coder (DSP chip) encodes the data in real time to further reduce the load on the CPU. Here, real-time encoding refers to encoding voice signal data input for a specific time t within t time. The CPU stores the encoded and compressed voice data in a storage device such as a hard disk. On the contrary, in the process of reproducing the voice signal, the voice signal is reproduced by operating in the reverse order of the above process.

그러나 단순히 사운드 카드와 CPU를 이용하여 음성신호를 저장하는 컴퓨터 장치에서는 비록 사운드 카드가 CPU이 일부 기능을 대신하기는 하지만 여전히 고성능의 CPU를 필요로 할 뿐 아니라 CPU에 과도한 부담을 주어 효율적인 사용을 어렵게 한다는 문제점이 있었다. 또한 음성 부호화 알고리즘이 구현된 DSP 칩을 이용한 음성부호기를 내장한 컴퓨터 장치에 있어서는 별도의 사운드카드와 마이크 및 DSP 칩을 추가로 갖추이야 하는 부담이 있었다.However, in a computer device that simply uses a sound card and CPU to store voice signals, although the sound card replaces some functions, the CPU still needs a high-performance CPU and overloads the CPU, making it difficult to use efficiently. There was a problem. In addition, in a computer device having a voice coder using a DSP chip in which a voice encoding algorithm is implemented, a separate sound card, a microphone, and a DSP chip need to be additionally equipped.

본 발명은 이와 같은 문제점을 해소하기 위한 것으로서 휴대폰을 컴퓨터 장치에 연결한 후 휴대폰에 내장되어 있는 음성 부호기 및 마이크를 이용하여 별도의 사운드 카드나 마이크 없이도 적은 량의 데이터로 압축된 음성신호를 컴퓨터의 저장장치에 저장 및 재생할 수 있는 방법을 제공하기 위한 것이다.The present invention is to solve the above problems, and after connecting the mobile phone to the computer device using a voice encoder and a microphone built in the mobile phone without a separate sound card or microphone without a voice signal compressed to a small amount of data of the computer An object of the present invention is to provide a method of storing and reproducing a storage device.

상기 목적달성을 위한 본 발명의 휴대용 통신기기를 이용한 컴퓨터의 음성신호 저장방법은, 음성정보를 입력하기 위한 마이크와, 아날로그/디지털 변환회로와, 음성부호화 알고리즘이 구현된 음성부호기와, CPU와, 음성정보 송수신을 위한 송수신기를 구비하는 휴대용 통신기기를 이용하여 컴퓨터의 저장장치에 음성 데이터를 저장하는 방법에 있어서, 상기 마이크를 통해 입력된 아날로그 음성신호를 디지털 신호로 변환하는 단계와, 상기 디지털 변환된 음성신호 중 1 프레임의 음성신호를 압축 부호화하는 단계와, 상기 압축 부호화된 신호를 패킷화하여 컴퓨터에 전송하는 단계와, 상기 휴대폰으로부터 수신된 패킷에 에러가 있는지를 검사하여 에러가 있으면 휴대폰에 NAK신호를 전송하고, 에러가 없으면 ACK신호를 전송하는 단계와, 상기 컴퓨터로부터 ACK 신호를 수신하면 패킷 카운터를 증가시키는 단계와, 상기 컴퓨터로부터 ACK신호를 받지 못하거나 NAK신호를 수신하면 1 프레임의 시간이 경과하였는지를 검사하는 단계와, 상기 검사결과 1 프레임의 시간이 경과하였으면 패킷 카운터를 증가시키고, 1 프레임의 시간이 아직 경과하지 않았으면 컴퓨터로부터의 응답을 대기하는 단계와, 휴대폰에서 송신된 패킷 카운터가 2 이상으로 증가했는지를 검사하는 단계와, 상기 검사결과 패킷 카운터가 2이상으로 증가하지 않았으면 수신 패킷에서 음성 프레임 데이터를 추출하여 저장장치에 저장하고, 패킷 카운터가 2이상으로 증가하였으면 이전 프레임과 현재 받은 프레임으로 손실된 프레임을 보간하여 저장장치에 저장하는 단계를 포함하는 것을 특징으로 한다.Voice signal storage method of a computer using a portable communication device of the present invention for achieving the above object, a microphone for inputting voice information, an analog / digital conversion circuit, a voice encoder implemented with a voice encoding algorithm, a CPU; A method of storing voice data in a storage device of a computer using a portable communication device having a transceiver for transmitting and receiving voice information, the method comprising: converting an analog voice signal input through the microphone into a digital signal; Compressing and encoding a voice signal of one frame among the received voice signals, packetizing the compressed and encoded signal to a computer, and checking whether there is an error in the packet received from the mobile phone. Transmitting a NAK signal and transmitting an ACK signal if there is no error; Incrementing a packet counter when receiving an ACK signal from the computer; checking whether one frame has elapsed when the ACK signal is not received from the computer or when a NAK signal is received; Increase the packet counter, wait for a response from the computer if the time of one frame has not yet elapsed, check whether the packet counter transmitted from the mobile phone has increased to two or more, and the check result packet counter If is not increased to 2 or more, extract the voice frame data from the received packet and store it in the storage device, and if the packet counter is increased to 2 or more, interpolating the lost frame with the previous frame and the currently received frame and storing it in the storage device. Characterized in that it comprises a.

또한, 상기 목적달성을 위한 본 발명의 휴대용 통신기기를 이용한 컴퓨터의 음성신호 재생방법은, 스피커와, 아날로그/디지털 변환회로와, 음성부호화 알고리즘이 구현된 음성부호기와, CPU와, 송수신기를 구비하는 휴대용 통신기기를 이용하여 컴퓨터의 저장장치로부터 음성 데이터를 재생하는 방법에 있어서, 컴퓨터의 저장장치에 압축 저장된 1 프레임의 음성데이터를 읽어들이는 단계와, 상기 음성 데이터를 패킷화한 다음 휴대폰에 전송하는 단계와, 컴퓨터로부터 전송된 패킷을 수신하여 수신된 패킷에 에러가 존제하는지를 검사하는 단계와, 상기 검사결과 상기 수신된 패킷에서 에러가 검출되면 1 프레임의 시간이 경과했는지를 검사하고, 에러가 검출되지 않으면 컴퓨터에 올바른 패킷을 수령하였음을 알리는 ACK신호를 전송하는 단계와, 상기 1 프레임의 시간이 경과했는지를 검사한 결과 1 프레임의 시간이 경과하였으면 다음 패킷의 수신을 대기하고,1 프레임의 시간이 경과하지 않았으면 컴퓨터에 NAK신호를 전송한 후 다음 패킷의 수신을 대기하는 단계와, 상기 패킷을 휴대폰으로 전송한 후 휴대폰으로부터의 응답을 기다리고 있다가 응답이 있으면 그 신호가 ACK신호인지를 검사하여 ACK신호이면 상기 저장장치로부터 새로운 프레임의 음성 데이터를 읽어들이는 단계와, 상기 휴대폰으로부터 응답이 없을 경우에는 1 프레임의 시간이 경과했는지를 검사하여 경과하지 않았으면 휴대폰으로부터의 응답을 기다리고, 경과하였으면 상기 저장장치로부터 새로운 프레임의 음성 데이터를 읽어들이는 단계와, 상기 컴퓨터로부터 수신된 패킷의 이상유무를 알리는 ACK신호니 NAK신호를 컴퓨터에 전송한 후 상기 수신된 패킷에서 음성신호를 추출하는 단계와, 상기 추출된 음성신호를 아날로그 신호로 변환하는 단계와, 상기 아날로그 변환된 음성신호를 스피커를 통해 출력하는 단계를 포함하는 것을 특징으로 한다.In addition, a method of reproducing a voice signal of a computer using the portable communication device of the present invention for achieving the above object includes a speaker, an analog / digital conversion circuit, a voice encoder implemented with a voice encoding algorithm, a CPU, and a transceiver. A method of reproducing voice data from a storage device of a computer using a portable communication device, the method comprising: reading voice data of one frame compressed and stored in the storage device of a computer; And checking whether there is an error in the received packet by receiving the packet transmitted from the computer, and if an error is detected in the received packet as a result of the inspection, checking whether one frame has elapsed, If not detected, transmitting an ACK signal to the computer indicating that a correct packet has been received; As a result of checking whether the time of one frame has elapsed, if the time of one frame has elapsed, it waits for the reception of the next packet. If the time of one frame has not elapsed, it transmits a NAK signal to the computer and waits for the reception of the next packet. And waiting for a response from the mobile phone after transmitting the packet to the mobile phone, and if there is a response, checking whether the signal is an ACK signal, and if it is an ACK signal, reading voice data of a new frame from the storage device; If there is no response from the mobile phone, checking whether the time of one frame has elapsed and waiting for a response from the mobile phone if it has not elapsed, and if it has elapsed, reading voice data of a new frame from the storage device; An ACK signal or a NAK signal indicating whether a packet has been received from the computer Extracting a voice signal from the received packet after transmission, converting the extracted voice signal into an analog signal, and outputting the analog converted voice signal through a speaker. .

상기 목적 및 기타의 목적과 본 발명의 이점 및 특징은 첨부 도면을 참조한 본 발명의 상세한 설명을 통해 보다 명백해 질 것이다.The above and other objects and advantages and features of the present invention will become more apparent from the following detailed description of the present invention with reference to the accompanying drawings.

이하, 첨부도면을 참조하여 본 발명의 실시예를 상세히 설명하기로 한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 3는 본 발명에 따라 휴대폰으로부터의 음성신호를 컴퓨터에 저장하는 것을 설명하기 위한 블록도이고, 도 4는 본 발명에 따라 컴퓨터로부터의 음성신호를 휴대폰에 재생하는 것을 설명하기 위한 블록도이다.Figure 3 is a block diagram for explaining the storage of the voice signal from the mobile phone to the computer according to the present invention, Figure 4 is a block diagram for explaining the reproduction of the voice signal from the computer to the mobile phone according to the present invention.

도 3 및 도 4에서, (20)은 디지털 휴대폰을 나타내고, (30)은 컴퓨터를 나타낸다. 또한 디지털 휴대폰(20)은 음성입력을 위한 마이크(1), 음성출력을 위한 스피커(11), 상기 마이크(1)로부터 입력되는 아날로그 음성신호를 디지털 음성신호로 변환하여 출력하고 상기 스피커(11)에 디지털 음성신호를 아날로그로 변환하여 출력하는 아날로그/디지털 변환기(3), DSP칩을 구비하며 음성 부호화 알고리즘(Vocoder Algorithm)이 구현되어 디지털 변환된 신호를 부호화하는 음성부호기(3), 컴퓨터 연결 프로그램에 의해 동작하는 CPU(4), 부호화된 신호를 송수신하기 위한 범용 비동기 송수신기(Universal Station Link Program:UART)(5), 컴퓨터와 직접 연결되는 통신포트(6)를 포함한다. 한편, 컴퓨터(30)는 디지털 휴대폰(20)과 연결하기 위한 통신포트(7), 디지털 휴대폰과 데이터 송수신을 위한 범용 비동기 송수신기(8), 디지털 휴대폰과의 연결을 위해 모빌 스테이션 링크 프로그램(Mobile Station Link Program)에서 구현되는 프로토콜(protocol)에 의해 동작하며 부호화된 음성정보를 처리하는 CPU(9), 상기 부호화된 음성정보를 저장하기 위한 저장장치(10)를 포함한다.3 and 4, reference numeral 20 denotes a digital cellular phone, and 30 denotes a computer. In addition, the digital cellular phone 20 converts an analog voice signal input from the microphone 1 for voice input, a speaker 11 for voice output, and an analog voice signal input from the microphone 1 to a digital voice signal, and outputs the speaker 11. An analog-to-digital converter (3) for converting and outputting a digital voice signal into an analog signal; a DSP chip; and a voice encoder (3) for encoding a digitally converted signal by implementing a voice algorithm (Vocoder Algorithm), and a computer connection program. CPU 4, which is operated by a PC, a Universal Asynchronous Transceiver (UART) 5 for transmitting and receiving an encoded signal, and a communication port 6 directly connected to a computer. On the other hand, the computer 30 has a communication port 7 for connecting with the digital mobile phone 20, a universal asynchronous transceiver 8 for transmitting and receiving data with the digital mobile phone, and a mobile station link program for connecting with the digital mobile phone. And a CPU 9 operating by a protocol implemented in a link program and processing the encoded voice information, and a storage device 10 for storing the encoded voice information.

도 5는 음성신호 저장시 휴대폰내의 CPU와 음성부호기 사이에서 이루어지는 처리 흐름도이고, 도 6는 음성신호 저장시 컴퓨터내의 CPU에서 이루어지는 처리 흐름도이다.이하, 도 3, 도 5 및 도 6를 참조하여, 디지털 휴대폰에 내장된 음성부호기를 이용하여 적은 용량을 차지하면서 효과적으로 음성신호를 컴퓨터에 저장하는 방법에 대하여 설명하기로 한다.FIG. 5 is a flowchart of processing performed between the CPU in the mobile phone and the voice encoder when storing a voice signal, and FIG. 6 is a flowchart of processing performed in the CPU in the computer when storing the voice signal. Referring to FIGS. 3, 5, and 6, FIG. A method of effectively storing a voice signal in a computer while occupying a small capacity using a voice encoder built in a digital mobile phone will be described.

먼저, 휴대폰(20)을 켜면 휴대폰내의 CPU(4)와 음성부호기(3)는 음성신호를 저장하기 위한 준비상태로 된다(S10). 이 상태에서 마이크(1)에 음성신호가 입력되면, 아날로그/디지털 변환기(2)는 입력된 아날로그 신호를 디지털 신호로 변환하여 출력한다. 음성부호화 알고리즘이 구현된 DSP칩을 구비하는 음성 부호기(3)는 아날로그/디지털 변환기(2)로부터의 디지털 변환된 음성 신호를 입력하고(S11),1 프레임의 음성신호를 압축 부호화하여(S12), CPU(4)에 상기 압축부호화된 1 프레임의 음성신호를 전송한다(S13). 여기에서, 프레임(frame)은 음성신호 분석의 단위로 보통 15 - 30ms 정도의 길이를 사용한다.First, when the mobile phone 20 is turned on, the CPU 4 and the voice encoder 3 in the mobile phone are ready to store a voice signal (S10). When a voice signal is input to the microphone 1 in this state, the analog-to-digital converter 2 converts the input analog signal into a digital signal and outputs it. The speech encoder 3 having a DSP chip on which the speech encoding algorithm is implemented inputs a digitally converted speech signal from the analog / digital converter 2 (S11), and compresses and encodes a speech signal of one frame (S12). In operation S13, the CPU 4 transmits the audio signal of the compressed coded one frame. In this case, a frame usually has a length of about 15-30 ms as a unit of voice signal analysis.

한편, CPU(4)는 패킷 카운터를 초기화하고 있다가(S14), 음성부호기(3)로부터 전송된 1 프레임의 음성신호를 수신한 다음 에러 검출 코드를 삽입하여 패깃으로 만든다(S16). 패킷(packet)은 CRC(Cyclic Redundancy Checking)코드와 같은 에러 검출 코드와, 패킷 카운터와 같이 컴퓨터와 데이터를 주고 받기 위해 필요한 정보를 음성신호 프레임에 추가하여 만들어진다. 패킷은 컴퓨터 연결 프로그램(computer link program)에 의해 구현되는 컴퓨터와의 연결 프로토콜에 의해 범용 비동기 송수신기 (Universal Asynchronous Receiver/Transmitter:LJART)(5)로 전송된다. 상기 범용 비동기 송수신기(5)는 RS-232 규약에 따라 상기 패킷을 통신포트(6)를 통해 컴퓨터로 전송한다 (S17). 컴퓨터에서는 통신포트(7)와 범용 비동기 송수신기(8)를 통해 입력되는 휴대폰으로부터의 패킷을 수신하고(S19), 수신된 패킷에 에러가 있는지를 검사한다(S20). 그 결과, 에러가 있으면 휴대폰에 NAK신호를 전송하고(S21) 단계(S19)로 복귀하여 컴퓨터로부터의 새로운 패킷을 수신하기 위해 대기하고, 에러On the other hand, the CPU 4 initializes the packet counter (S14), receives a voice signal of one frame transmitted from the voice encoder 3, and then inserts an error detection code into a packet (S16). A packet is made by adding an error detection code such as a cyclic redundancy checking (CRC) code and information necessary for exchanging data with a computer such as a packet counter to a voice signal frame. The packet is transmitted to the Universal Asynchronous Receiver / Transmitter (LJART) 5 by a connection protocol with a computer implemented by a computer link program. The general purpose asynchronous transceiver 5 transmits the packet to the computer through the communication port 6 according to the RS-232 protocol (S17). The computer receives a packet from the cellular phone input through the communication port 7 and the general purpose asynchronous transceiver 8 (S19), and checks whether there is an error in the received packet (S20). As a result, if there is an error, it transmits a NAK signal to the cellular phone (S21) and returns to step S19 to wait to receive a new packet from the computer, and the error

가 없으면 휴대폰에 ACK신호를 전송한다(S22). 휴대폰에서는 컴퓨터로부터의 응답을 대기하고 있다가(S18) ACK 신호를 수신하면(S19) 패킷 카운터를 증가시키고 단계(S15)로 복귀하여 음성부호기(3)로부터의 새로운 프레임을 기다린다(S21). 그러나 ACK신호를 받지 못하거나 NAK신호를 수신하면 1 프레임의 시간이 경과하였는지를 검사하여, 1 프레임의 시간이 경과하였으면 단계(S25)로 진행하여 패킷 카운터를 증가시킨 다음 음성부호기(3)로부터의 새로운 프레임을 기다리고, 1 프레임의 시간이 아직 경과하지 않았으면 단계(S18)로 진행하여 컴퓨터로부터의 응답을 기다린다.If there is no SACK signal to the mobile phone (S22). The mobile phone waits for a response from the computer (S18), and upon receiving an ACK signal (S19), increments the packet counter and returns to step S15 to wait for a new frame from the voice encoder 3 (S21). However, if the ACK signal is not received or the NAK signal is received, it is checked whether the time of one frame has elapsed. If the time of one frame has elapsed, the process proceeds to step S25 to increase the packet counter and then the new signal from the voice encoder 3. If the time of one frame has not yet elapsed, the process proceeds to step S18 to wait for a response from the computer.

한편, 컴퓨터에서는 휴대폰에서 송신된 패킷 카운터가 2 이상으로 증가했는지를 검사하여(S26), 패킷 카운터가 2이상으로 증가하지 않았으면 수신 패킷에서 음성 프레임 데이터를 추출하여 저장장치에 저장하고(S27), 단계(S19)로 복귀하여 휴대폰으로부터의 패킷 수신을 위한 대기상태로 들어간다. 반면, 패킷 카운터가 2이상으로 증가하였으면 이전 프레임과 현재 받은 프레임으로 손실된 프레임을 보간하여 단계(S27)로 진행하여 상기한 바와 같은 과정을 되풀이한다.On the other hand, the computer checks whether the packet counter transmitted from the mobile phone has increased to 2 or more (S26). If the packet counter does not increase to 2 or more, voice frame data is extracted from the received packet and stored in the storage device (S27). In step S19, the process returns to the standby state for receiving a packet from the mobile phone. On the other hand, if the packet counter is increased to 2 or more, the process as described above is repeated by interpolating the frames lost to the previous frame and the currently received frame to the step S27.

상술한 과정에서 휴대폰에서 패킷을 반들 때 에러정정 코드를 넣고 컴퓨터로부터의 ACK/NAK 신호를 기다리는 이유는 휴대폰과 컴퓨터의 연결에 의한 데이터 전송시 잡음에 의해 데이터가 변형 또는 손실될 수 있기 때문이다. 이렇게 하면 휴대폰에서 데이터를 전송할 때, 컴퓨터에서는 받은 데이터의 변형여부를 에러정정 코드를 이용하여 알아낸 다음, 데이터를 제대로 받았으면 ACK를 보내고 그렇지 않으면 NAK를 휴대폰에 전송하여 이전 데이터를 다시 전송할 것을 요구할 수 있게 된다. 이때 패킷 카운터를 사용하는데 그 이유는 다음과 같다. 예를 들어, 음성신호 1 프레임이 20ms 라고 가정한다면, 휴대폰의 CPU는 이를 패킷으로 만들어 컴퓨터에 전송하고, 컴퓨터로부터 패깃을 정상적으로 받았다는 ACK신호를 받으면 다음 프레임을 위해 대기하고 있어야 한다. 그런데 20ms가 지나도록 컴퓨터로부터 계속적으로 NAK신호를 받는 경우에는 문제가 발생한 경우이므로 휴대폰에서는 현재 프레임을 전송하는 것을 포기하고 다음 프레임을 위한 작업으로 넘어간다. 컴퓨터에서는 카운터가 2이상 증가한것으로 이를 인식하여 전송받지 못한 프레임을 그 이전 프레임과 그 이후 프레임을 이용한 보간(interpolation)에 의해 기역장치에 저장하는 것이다.The reason for inserting the error correction code and waiting for the ACK / NAK signal from the computer when the packet is touched by the mobile phone in the above-described process is that data may be deformed or lost due to noise during data transmission by the connection between the mobile phone and the computer. This way, when sending data from a mobile phone, the computer can use the error correction code to find out if the data has been deformed, then send an ACK if the data is received correctly, or send a NAK to the mobile phone to request that the previous data be sent again. Will be. The packet counter is used for the following reasons. For example, suppose that one frame of voice signal is 20ms, the CPU of the mobile phone makes it into a packet and transmits it to the computer, and when the ACK signal is received from the computer, it should wait for the next frame. However, if the NAK signal is continuously received from the computer for more than 20ms, the problem occurs. The mobile phone gives up transmitting the current frame and moves on to the next frame. The computer recognizes that the counter has increased by two or more, and stores the unreceived frame in the AED by interpolation using a previous frame and a subsequent frame.

이하, 도 4, 도 7 및 도 8를 참조하여 컴퓨터에 저장된 음성신호를 복호화(신장)하고 재생하는 방법에 대하여 설명하기로 한다. 도 7는 음성신호 복호화 및 재생시 휴대폰 내의 CPU와 음성부호기 사이에서 이루어지는 처리 흐름도이고, 도 8는 음성신호 복호화 및 재생시 컴퓨터내의 CPU에서 이루어지는 처리 흐름도이다.Hereinafter, a method of decoding (extending) and reproducing an audio signal stored in a computer will be described with reference to FIGS. 4, 7 and 8. Fig. 7 is a process flow diagram performed between the CPU in the mobile phone and the voice encoder during decoding and reproducing the voice signal, and Fig. 8 is a process flow chart performed in the CPU in the computer during the decoding and reproduction of the voice signal.

먼저, 컴퓨터의 CPU(9)가 모빌 스데이션 링크 프로그램(Mobile Station Link Program)에 의해 구동되면 저장장치(10)에 압축 저장된 1 프레임의 음성 데이터를 읽어들여(S42), 에러 검출코드를 삽입하여 패킷으로 만든 다음(S43), 패킷을 휴대폰으로 전송한다(S44).First, when the CPU 9 of the computer is driven by the mobile station link program, the audio data of one frame that is compressed and stored in the storage device 10 is read (S42), and an error detection code is inserted. After the packet is made (S43), the packet is transmitted to the mobile phone (S44).

휴대폰에서는 컴퓨터로부터 전송된 패킷을 수신하여(S45) 수신된 패킷에 에러가 존재하는지를 검사한다(S46). 그 결과 에러가 검출되면 1 프레임의 시간이 경과했는지를 검사하여(S47) 1 프레임의 시간이 경과하였으면 단계(S45)로The mobile phone receives the packet transmitted from the computer (S45) and checks whether an error exists in the received packet (S46). As a result, if an error is detected, it is checked whether the time of one frame has elapsed (S47). If the time of one frame has elapsed, the process proceeds to step S45.

복귀하여 다음 패킷의 수신을 대기하고,1 프레임의 시간이 경과하지 않았으면 컴퓨터에 NAK신호를 전송한 다음 단계(S45)로 복귀하여 다음 패킷의 수신을 대기한다. 그리고 수신된 패킷에 에러가 존재하지 않은 경우에는 컴퓨터에 올바른 패킷을 수령하였음을 앨리는 ACK신호를 전송한다(S49).After returning, wait for reception of the next packet. If the time of one frame has not elapsed, a NAK signal is transmitted to the computer, and then the flow returns to step S45 to wait for reception of the next packet. If there is no error in the received packet, an ACK signal is transmitted to the computer indicating that the correct packet has been received (S49).

컴퓨터에서는 패킷을 휴대폰으로 전송한 후 휴대폰으로부터의 응답을 기다리고 있다가 응답이 있으면(S50) 그 신호가 ACK신호인지를 검사하여(S51) ACK신호이면 단계(S42)로 복귀하여 저장장치로부터 새로운 프레임의 음성 데이터를 읽어들이고, ACK신호가 아니면 단계(S44)로 복귀한다. 그리고 휴대폰으로부터 응답이 없을 경우에는 1 프레임의 시간이 경과했는지를 검사하여 경과하지 않았으면 휴대폰으로부터의 응답을 기다리고 경과하였으면 단계(S42)로 복귀하여 상기 과정을 되풀이한다.The computer transmits the packet to the mobile phone and waits for a response from the mobile phone. If there is a response (S50), the computer checks whether the signal is an ACK signal (S51). If the signal is an ACK signal, the computer returns to step S42. Audio data is read, and the flow returns to step S44 if the signal is not an ACK signal. If there is no response from the mobile phone, it checks whether the time of one frame has elapsed. If it has not elapsed, waits for a response from the mobile phone and returns to step S42 to repeat the process.

한편, 휴대폰에서는 수신된 패킷의 이상유무를 알리는 ACK신호나 NAK신호를 컴퓨터에 전송한 후 수신된 패킷에서 음성신호를 추출하여 음성부호기(3)로 전송하고(S53),1 프레임의 시간이 경과하기를 기다린 다음(S54) 단계(S45)로 복귀하여 새로운 패킷의 수신을 내게한다. 휴대폰의 음성부호기(3)는 CPU(4)로부터 전송된 1 프레임의 음성신호를 수신하여(S55) 복호화한 다음(S53) 디지털/아날로그 변환기(2)로 전송한다. 디지털/아날로그 변환기(2)는 디지털 신호를 아날로그 신호로 변환하여 스피커(11)를 통해 출력함으로써 재생작업을 완료한다.On the other hand, the mobile phone transmits an ACK signal or NAK signal indicating whether there is an abnormality of the received packet to the computer, extracts the voice signal from the received packet, and transmits the voice signal to the voice encoder 3 (S53). After waiting (S54), the process returns to step S45 to receive a new packet. The voice encoder 3 of the cellular phone receives the audio signal of one frame transmitted from the CPU 4 (S55), decodes it (S53), and transmits it to the digital-to-analog converter 2. The digital / analog converter 2 converts the digital signal into an analog signal and outputs it through the speaker 11 to complete the reproducing operation.

음성부호기(3)에서 부호화된 디지털 음성신호의 부호화율은 디지털 휴대폰의 종류에 따라 다른데, 현재 국내에서 서비스 중인 디지털 셀룰러 폰의 경우 8,4,2,1 Kbps의 가변 부호화율을 사용하고 평균적으로 4Kbps정도이다. 이경우 1시간 동안의 음성신호를 저장하는데 약 1.8MB의 저장공간이 필요하다. 유럽에서 주로 사용되는 GSM의 경우 13Kbps의 부호화율을 사용하고 있고 이경우 시간당 요구되는 저장공간은 5.85MB이다. 종래의 음성부호기를 사용했을때 시간당 28.8MB의 저장공간이 필요한 것과 비교하만 5-7배 정도로 데이터량이 줄일 수 있어 자원을 절약할 수 있을 뿐 아니라 디지털 휴대폰과 컴퓨터를연결하는 것 외에 추가의 장치가 필요하지 않음을 알 수 있다.The coding rate of the digital voice signal encoded by the voice encoder 3 varies depending on the type of digital cellular phone. In the case of digital cellular phones currently in service in Korea, a variable coding rate of 8,4,2,1 Kbps is used. 4Kbps or so. In this case, about 1.8MB of storage space is required to store an audio signal for one hour. GSM, which is mainly used in Europe, uses a code rate of 13Kbps, and the required storage space per hour is 5.85MB. Compared with the conventional voice encoder, which requires 28.8MB of storage space per hour, the amount of data can be reduced by 5-7 times, which saves resources and additional devices besides connecting a digital mobile phone to a computer. It can be seen that it is not necessary.

본 발명에 사용한 음성부호기는 일반적으로 디코더(decoder)와 인코더(encoder)가 함께 포함된 것으로, 디코더는 인코더에 비해 상대적으로 복잡도와 연산량이 적으므로 컴퓨터 내에서 소프트웨어적으로 구현하는 것도 가능하다.The voice encoder used in the present invention generally includes a decoder and an encoder, and since the decoder has a relatively low complexity and a large amount of calculation compared to the encoder, it may be implemented in software in a computer.

따라서 음성신호를 저장할 때에는 본 발명에 의한 방법을 따르고 재생할 때에는 휴대폰과의 연결 없이 컴퓨터 내에서 디코더 소프트웨이와 사운드 카드를 이용하여 재생하는 것도 가능하다. 또한 본 실시예에서는 휴대폰과 컴퓨터를 연결한는 물리층으로서 통신포트를 사용하였으나 적외선(IR)을 사용하는 것도 가능다.Therefore, when the voice signal is stored, it is possible to follow the method according to the present invention and to reproduce the audio signal using a decoder software and a sound card in a computer without a connection with a mobile phone. In addition, although the communication port is used as the physical layer connecting the mobile phone and the computer in this embodiment, it is also possible to use infrared (IR).

상술한 본 발명의 바람직한 실시예에서는 비록 본 발명의 가장 적합한 실시예만을 예시하였지만 당업자라면 본 발명의 사상 및 범위를 통해 각종 수정, 변경, 대체 및 부가가 가능할 것이다. 따라서 이러한 각종 수정, 변경, 대체 및 부가는 첨부된 특허청구의 범위에 기재된 본 발명의 범위에 포함되는 것이다.Although the preferred embodiments of the present invention described above only illustrate the most suitable embodiments of the present invention, those skilled in the art will be able to make various modifications, changes, substitutions and additions through the spirit and scope of the present invention. Accordingly, such various modifications, changes, substitutions and additions are intended to be included within the scope of the present invention as set forth in the appended claims.

Claims (4)

음성정보를 입력하기 위한 마이크와, 아날로그/디지털 변환회로와, 음성부호화 알고리즘이 구현된 음성부호기와, CPU와, 음성정보 송수신을 위한송수신기를 구비하는 휴대용 통신기기를 이용하여 컴퓨터의 저장장치에 음성데이터를 저장하는 방법에 있어서, 상기 마이크를 통해 입력된 아날로그 음성신호를 디지털 신호로 변환하는 단계와, 상기 디지털 변환된 음성신호 중 1 프레임의 음성신호를 압축 부호화하는 단계와, 상기 압축 부호화된 신호를 패킷화하여 컴퓨터에 전송하는 단계와, 상기 휴대폰으로부터 수신된 패킷에 에러가 있는지를 검사하여 에러가 있으면 휴대폰에 NAK신호를 전송하고, 에러가 없으면 ACK신호를 전송하는 단계와, 상기 컴퓨터로부터 ACK 신호를 수신하면 패킷 카운터를 증가시키는 단계와, 상기 컴퓨터로부터 ACK신호를 받지 못하기나 NAK신호를 수신하면 1프레임의 시간이 경과하였는지를 검사하는 단계와, 상기 검사결과 1 프레임의 시간이 경과하였으면 패킷 카운터를 증가시키고, 1 프레임의 시간이 아직 경과하지 않았으면 컴퓨터로부터의 응답을 대기하는 단계와, 상기 휴대폰에서 송신된 패깃 카운터가 2 이상으로 증가했는지를 검사하는 단계와, 상기 검사결과 패킷 카운터가 2이상으로 증가하지 않았으면 수신 패킷에서 음성 프레임 데이터를 추출하여 저장장치에 저장하고, 패깃 카운터가 2 이상으로 증가하였으면 이전 프레임과 현재 받은 프레임으로 손실된 프레임을 보간하여 저장장치에 저장하는 단계를 포함하는 것을 특징으로 하는 음성데이터의 저장방법.A voice is stored in a computer storage device using a portable communication device including a microphone for inputting voice information, an analog / digital conversion circuit, a voice encoder implementing a voice encoding algorithm, a CPU, and a transceiver for transmitting and receiving voice information. A method of storing data, the method comprising: converting an analog voice signal input through the microphone into a digital signal, compressing and encoding a voice signal of one frame of the digitally converted voice signal, and performing the compression coded signal. Packetizing and transmitting the packet to the computer, checking whether there is an error in the packet received from the mobile phone, transmitting an NAK signal to the mobile phone if there is an error, and transmitting an ACK signal if there is no error; Incrementing a packet counter upon receiving a signal, receiving an ACK signal from the computer When the NAK signal is received, checking whether the time of one frame has elapsed; if the time of one frame has elapsed, increasing the packet counter; if the time of one frame has not elapsed, responding from the computer. Waiting; and checking whether the packet counter transmitted from the mobile phone is increased to 2 or more, and extracting the voice frame data from the received packet and storing the packet frame data in the storage device if the packet counter is not increased to 2 or more. And if the paddle counter is increased to 2 or more, interpolating the frames lost to the previous frame and the currently received frame and storing the interpolated frames in the storage device. 제 1 항에 있어서, 상기 패깃은 에러 검출 코드와, 상기 컴퓨터와 데이터를 주고 받기 위해 필요한 정보를 상기 프레임에 추가하여 만들어지는 것을 특징으로 하는 음성데이터의 저장방법.The method of claim 1, wherein the packet is made by adding an error detection code and information necessary for exchanging data with the computer to the frame. 스피커와, 아날로그/디지털 변환회로와, 음성부호화 알고리즘이 구현된 음성부호기와, CPU와, 송수신기를 구비하는 휴대용 통신기기를 이용하여 컴퓨터의 저장장치로부터 음성 데이터를 재생하는 방법에 있어서, 컴퓨터의 저장장치에 압축 저장된 1 프레임의 음성데이터를 읽어들이는 단계와, 상기 음성 데이터를 패킷화한 다음 휴대폰에 전송하는 단계와, 상기 컴퓨터로부터 전송된 패킷을 수신하여 수신된 패깃에 에러가 존재하는지를 검사하는 단계와, 상기 검사결과 상기 수신된 패킷에서 에러가 검출되면 1 프레임의 시간이 경과했는지를 검사하고, 에러가 검출되지 않으면 컴퓨터에 올바른 패깃을 수령하였음을 알리는 ACK신호를 전송하는 단계와, 상기 1 프레임의 시간이 경과했는지를 검사한 결과 1 프레임의 시간이 경과하였으면 다음 패깃의 수신을 대기하고, 1 프레임의 시간이 경과하지 않았으면 컴퓨터에 NAK신호를 전송한 후 다음 패깃의 수신을 대기하는 단계와, 상기 패킷을 휴대폰으로 전송한 후 휴대폰으로부터의 응답을 기다리고 있다가 응답이 있으면 그 신호가 ACK신호인지를 검사하여 ACK신호이면 상기 저장장치로부터 새로운 프래임의 음성 데이터를 읽어들이는 단계와, 상기 휴대폰으로부터 응답이 없을 경우에는 1 프레임의 시간이 경과했는지를 검사하여 경과하지 않았으면 휴대폰으로부터의 응답을 기다리고, 경과하였으면 상기 저장장치로부터 새로운 프레임의 음성 데이터를 읽어들이는 단계와, 상기 컴퓨터로부터 수신된 패킷의 이상유무를 알리는 ACK신호나 NAK신호를 컴퓨터에 전송한 후 상기 수신된 패킷에서 음성신호를 추출하는 단계와, 상기 추출된 음성신호를 아날로그 신호로 변환하는 단계와, 상기 아날로그 변환된 음성신호를 스피커를 통해 출력하는 단계를 포함하는 것을 특징으로 하는 음성 데이터 재생방법.A method of reproducing voice data from a storage device of a computer by using a portable communication device including a speaker, an analog / digital conversion circuit, a voice encoder implementing a voice encoding algorithm, a CPU, and a transceiver, the computer storing Reading voice data of one frame compressed and stored in a device, packetizing the voice data and transmitting the packet to a mobile phone, receiving a packet transmitted from the computer, and checking whether there is an error in the received packet. And checking whether the time of one frame has elapsed when an error is detected in the received packet as a result of the inspection, and if an error is not detected, transmitting an ACK signal indicating that a correct packet is received to the computer; If the time of one frame has elapsed, if the time of one frame has elapsed, Waiting for a scene, if the time of one frame has not elapsed, transmitting a NAK signal to a computer and waiting for reception of the next packet, and after transmitting the packet to a mobile phone, waiting for a response from the mobile phone. Checking whether the signal is an ACK signal, and if it is an ACK signal, reading the audio data of a new frame from the storage device; and if there is no response from the mobile phone, if it has not elapsed by checking whether the time of one frame has elapsed; Waiting for a response from the mobile phone, and if it has passed, reading the voice data of a new frame from the storage device, transmitting an ACK signal or a NAK signal indicating whether there is an error in the packet received from the computer, Extracting a voice signal from the packet, and analyzing the extracted voice signal Converting in the signal, an audio data reproducing method for converting the analog audio signal, characterized in that it comprises a step of outputting through the speaker. 제 3 항에 있어서, 상기 패킷은 에러 검출 코드와, 상기 휴대폰과 데이터를 주고 받기 위해 필요한 정보를 상기 프레임에 추가하여 만들어지는 것을 특징으로 하는 음성데이터의 재생방법.4. The method of claim 3, wherein the packet is made by adding an error detection code and information necessary for exchanging data with the mobile phone to the frame.
KR1019960069497A 1996-12-21 1996-12-21 Voice signal storage and playback method of computer using portable communication device KR19980050652A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019960069497A KR19980050652A (en) 1996-12-21 1996-12-21 Voice signal storage and playback method of computer using portable communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019960069497A KR19980050652A (en) 1996-12-21 1996-12-21 Voice signal storage and playback method of computer using portable communication device

Publications (1)

Publication Number Publication Date
KR19980050652A true KR19980050652A (en) 1998-09-15

Family

ID=66383900

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019960069497A KR19980050652A (en) 1996-12-21 1996-12-21 Voice signal storage and playback method of computer using portable communication device

Country Status (1)

Country Link
KR (1) KR19980050652A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100605949B1 (en) * 1999-02-20 2006-08-02 삼성전자주식회사 Potable telephone having data compression or expansion function
KR100630081B1 (en) * 1999-06-30 2006-09-27 삼성전자주식회사 Method for recording voice signal in moible cordless communication terminal
KR100868474B1 (en) * 2006-12-04 2008-11-12 한국전자통신연구원 Method for receiving the broadcast data using timer in wireless personal area networks

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100605949B1 (en) * 1999-02-20 2006-08-02 삼성전자주식회사 Potable telephone having data compression or expansion function
KR100630081B1 (en) * 1999-06-30 2006-09-27 삼성전자주식회사 Method for recording voice signal in moible cordless communication terminal
KR100868474B1 (en) * 2006-12-04 2008-11-12 한국전자통신연구원 Method for receiving the broadcast data using timer in wireless personal area networks

Similar Documents

Publication Publication Date Title
US5881104A (en) Voice messaging system having user-selectable data compression modes
US5724410A (en) Two-way voice messaging terminal having a speech to text converter
KR100373294B1 (en) Transceiver
JPH11150602A (en) Radio telephone system
JPH02288520A (en) Voice encoding/decoding system with background sound reproducing function
JP4464484B2 (en) Noise signal encoding apparatus and speech signal encoding apparatus
US20020128826A1 (en) Speech recognition system and method, and information processing apparatus and method used in that system
KR20010041802A (en) Communication device and method of operation
CN1190986C (en) Communication terminal
KR19980050652A (en) Voice signal storage and playback method of computer using portable communication device
JP3343002B2 (en) Voice band information transmission device
KR100444985B1 (en) Combined stylus and method for driving thereof
JPS6058753A (en) Voice storage method
JPH09139978A (en) Sound signal transmitter-receiver
KR100428717B1 (en) Speech signal transmission method on data channel
JP3318784B2 (en) Data recording device and recording / reproducing device
JP3292522B2 (en) Mobile phone
JP3491320B2 (en) Communication device
JPH09270709A (en) Voice coder/decoder with voice recording and reproducing function
KR100285326B1 (en) Vocoding device and method for performing variable compression according to radio link status
CN115831176A (en) Embedded intelligent recording pen system based on cat1 remote monitoring and control
KR19990045553A (en) Telephone device and voice recording method
JPH11220553A (en) Digital portable telephone set
JPH03203466A (en) Modulator and demodulator
JPS6326044A (en) Voice coding device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application