npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

thoroughbred_react_native

v0.0.26

Published

실시간 음성 인식 라이브러리 테스트 버전

Readme

thoroughbred_react_native

실시간 음성 인식 라이브러리 테스트 버전

Install

npm install thoroughbred_react_native

method

| name | type | description | |--------------|----------|---------------------------------------------------------| | connect() | method | 음성인식 서버와 연결하기 위해 사용 됩니다. 음성 녹음을 시작하기 전에 제일 먼저 호출해야 합니다. | | start() | method | 음성 녹음을 시작할 때 호출합니다. 녹음이 시작됩니다. | | end() | method | 음성 녹음을 종료할 때 호출합니다. 녹음이 종료됩니다. | | disconnect() | method | 음성인식 서버와 연결을 종료할 때 호출합니다. 모든 작업이 완료되면 호출합니다. | | onConnected | callback | 음성인식 서버와 연결이 완료됐을 때 호출할 콜백을 등록합니다. | | onReady | callback | start() 호출 후 음성인식을 처리할 준비가 됐을 때 호출할 콜백을 등록합니다. | | onResult | callback | 음성인식 결과를 처리할 콜백을 등록합니다. | | onFinished | callback | end() 호출 후 음성인식이 완전히 종료됐을 때 호출할 콜백을 등록합니다. |

Example

import {ThoroughbredClient} from 'thoroughbred_react_native';

function App() {
    const [result, setResult] = React.useState('');
    // 객체가 중복으로 생성되는 것을 방지하기 위해 useRef를 사용하는 것을 권장합니다.
    const thoroughbred = useRef(null);
    if (!thoroughbred.current) {
        thoroughbred.current = new ThoroughbredClient();
        
        // 음성인식 서버와 연결이 완료됐을 때 호출할 콜백을 등록합니다.
        thoroughbred.current.onConnected = () => {
            // 이렇게 사용하면 연결되자마자 녹음을 시작할 수 있습니다.
            thoroughbred.current.start();
        };
        // 음성인식 결과를 처리할 콜백을 등록합니다.
        thoroughbred.current.onResult = result => {
            setResult(result);
        };

        // start() 호출 후 음성인식을 처리할 준비가 됐을 때 호출할 콜백을 등록합니다.
        thoroughbred.current.onReady = () => {
            console.log('ready');
        };

        // end() 호출 후 음성인식이 완전히 종료됐을 때 호출할 콜백을 등록합니다.
        thoroughbred.current.onFinished = () => {
            console.log('finished');
        };
    }


    return (
        <SafeAreaView>
            <Button
                title={"connect"}
                onPress={() => {
                    //  음성인식 서버와 연결합니다.
                    thoroughbred.current.connect();
                }}
            />
            <Button
                title={'start'}
                onPress={() => {
                    // 음성녹음을 시작합니다.
                    thoroughbred.current.start();
                }}
            />
            <Button
                title={'end'}
                onPress={() => {
                    // 음성녹음을 종료합니다.
                    thoroughbred.current.end();
                }}
            />
            <Button
                title={'disconnect'}
                onPress={async () => {
                    // 음성인식 서버와 연결을 종료합니다.
                    await thoroughbred.current.disconnect();
                }}
            />
            // 음성인식 결과를 출력합니다.
            <Text>{result}</Text>
        </SafeAreaView>
    );
}

References