Exemple #1
0
        private static void AsrBgm(String token, String endpoint)
        {
            String dataUrl = "https://obs-test-llg.obs.cn-north-1.myhwclouds.com/bgm_recognition"; // The obs url of file

            // post data by obs url
            String reslut = Asr.AsrBgmToken(token, dataUrl, endpoint);

            Console.WriteLine(reslut);
            Console.ReadKey();
        }
Exemple #2
0
        private static void AsrBgm(String token, String endpoint)
        {
            // The OBS link must match the region, and the OBS resources of different regions are not shared
            String dataUrl = "https://obs-test-llg.obs.cn-north-1.myhuaweicloud.com/bgm_recognition";

            // post data by obs url
            String reslut = Asr.AsrBgmToken(token, dataUrl, endpoint);

            Console.WriteLine(reslut);
            Console.ReadKey();
        }