VoiceIt2 3.0.1 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VoiceIt2.rb +12 -24
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5293dc1e46deff5943d4d10b62ab3e3c57c5a986ea3c3d9aec6cb68dfbc6db61
|
4
|
+
data.tar.gz: 6c113379743b05ff7843c2a56a0f14e88039a9b157443c3f49050490795ab692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15651008facb034b2ee3cda882647f7922380fcbbc6217062f7e18b6bc99a74627cf2ad69ca32800a1169bfc7391c01563a4b522ec3ff41e502d6ca9458d6d31
|
7
|
+
data.tar.gz: 12d2455fb1a8905197f586624601616416d79d1be01cf89577d6405f494863c0e9f6522bd7b013e56d2493e5f8b3123f27a2538255d9a7c734967d9460ac7b8d
|
data/VoiceIt2.rb
CHANGED
@@ -222,7 +222,7 @@ class VoiceIt2
|
|
222
222
|
end
|
223
223
|
end
|
224
224
|
|
225
|
-
def createFaceEnrollment(userId, filePath
|
225
|
+
def createFaceEnrollment(userId, filePath)
|
226
226
|
return RestClient::Request.new(
|
227
227
|
:method => :post,
|
228
228
|
:url => @BASE_URL.to_s + 'enrollments/face',
|
@@ -235,7 +235,6 @@ class VoiceIt2
|
|
235
235
|
:multipart => true,
|
236
236
|
:userId => userId,
|
237
237
|
:video => File.new(filePath, 'rb'),
|
238
|
-
:doBlinkDetection => doBlinkDetection
|
239
238
|
}).execute
|
240
239
|
rescue => e
|
241
240
|
if e.class == Errno::ENOENT
|
@@ -245,7 +244,7 @@ class VoiceIt2
|
|
245
244
|
end
|
246
245
|
end
|
247
246
|
|
248
|
-
def createFaceEnrollmentByUrl(userId, fileUrl
|
247
|
+
def createFaceEnrollmentByUrl(userId, fileUrl)
|
249
248
|
return RestClient::Request.new(
|
250
249
|
:method => :post,
|
251
250
|
:url => @BASE_URL.to_s + 'enrollments/face/byUrl',
|
@@ -258,13 +257,12 @@ class VoiceIt2
|
|
258
257
|
:multipart => true,
|
259
258
|
:userId => userId,
|
260
259
|
:fileUrl => fileUrl,
|
261
|
-
:doBlinkDetection => doBlinkDetection
|
262
260
|
}).execute
|
263
261
|
rescue => e
|
264
262
|
e.response
|
265
263
|
end
|
266
264
|
|
267
|
-
def createVideoEnrollment(userId, contentLanguage, phrase, filePath
|
265
|
+
def createVideoEnrollment(userId, contentLanguage, phrase, filePath)
|
268
266
|
return RestClient::Request.new(
|
269
267
|
:method => :post,
|
270
268
|
:url => @BASE_URL.to_s + 'enrollments/video',
|
@@ -279,7 +277,6 @@ class VoiceIt2
|
|
279
277
|
:userId => userId,
|
280
278
|
:contentLanguage => contentLanguage,
|
281
279
|
:video => File.new(filePath, 'rb'),
|
282
|
-
:doBlinkDetection => doBlinkDetection
|
283
280
|
}).execute
|
284
281
|
rescue => e
|
285
282
|
if e.class == Errno::ENOENT
|
@@ -289,7 +286,7 @@ class VoiceIt2
|
|
289
286
|
end
|
290
287
|
end
|
291
288
|
|
292
|
-
def createVideoEnrollmentByUrl(userId, contentLanguage, phrase, fileUrl
|
289
|
+
def createVideoEnrollmentByUrl(userId, contentLanguage, phrase, fileUrl)
|
293
290
|
return RestClient::Request.new(
|
294
291
|
:method => :post,
|
295
292
|
:url => @BASE_URL.to_s + 'enrollments/video/byUrl',
|
@@ -304,7 +301,6 @@ class VoiceIt2
|
|
304
301
|
:userId => userId,
|
305
302
|
:contentLanguage => contentLanguage,
|
306
303
|
:fileUrl => fileUrl,
|
307
|
-
:doBlinkDetection => doBlinkDetection
|
308
304
|
}).execute
|
309
305
|
rescue => e
|
310
306
|
if e.class == Errno::ENOENT
|
@@ -520,7 +516,7 @@ class VoiceIt2
|
|
520
516
|
end
|
521
517
|
end
|
522
518
|
|
523
|
-
def faceVerification(userId, filePath
|
519
|
+
def faceVerification(userId, filePath)
|
524
520
|
return RestClient::Request.new(
|
525
521
|
:method => :post,
|
526
522
|
:url => @BASE_URL.to_s + 'verification/face',
|
@@ -532,7 +528,6 @@ class VoiceIt2
|
|
532
528
|
:payload => {
|
533
529
|
:multipart => true,
|
534
530
|
:userId => userId,
|
535
|
-
:doBlinkDetection => doBlinkDetection,
|
536
531
|
:video => File.new(filePath, 'rb')
|
537
532
|
}).execute
|
538
533
|
rescue => e
|
@@ -543,7 +538,7 @@ class VoiceIt2
|
|
543
538
|
end
|
544
539
|
end
|
545
540
|
|
546
|
-
def faceVerificationByUrl(userId, fileUrl
|
541
|
+
def faceVerificationByUrl(userId, fileUrl)
|
547
542
|
return RestClient::Request.new(
|
548
543
|
:method => :post,
|
549
544
|
:url => @BASE_URL.to_s + 'verification/face/byUrl',
|
@@ -555,14 +550,13 @@ class VoiceIt2
|
|
555
550
|
:payload => {
|
556
551
|
:multipart => true,
|
557
552
|
:userId => userId,
|
558
|
-
:doBlinkDetection => doBlinkDetection,
|
559
553
|
:fileUrl => fileUrl
|
560
554
|
}).execute
|
561
555
|
rescue => e
|
562
556
|
e.response
|
563
557
|
end
|
564
558
|
|
565
|
-
def videoVerification(userId, contentLanguage, phrase, filePath
|
559
|
+
def videoVerification(userId, contentLanguage, phrase, filePath)
|
566
560
|
return RestClient::Request.new(
|
567
561
|
:method => :post,
|
568
562
|
:url => @BASE_URL.to_s + 'verification/video',
|
@@ -576,7 +570,6 @@ class VoiceIt2
|
|
576
570
|
:userId => userId,
|
577
571
|
:phrase => phrase,
|
578
572
|
:contentLanguage => contentLanguage,
|
579
|
-
:doBlinkDetection => doBlinkDetection,
|
580
573
|
:video => File.new(filePath, 'rb')
|
581
574
|
}).execute
|
582
575
|
rescue => e
|
@@ -587,7 +580,7 @@ class VoiceIt2
|
|
587
580
|
end
|
588
581
|
end
|
589
582
|
|
590
|
-
def videoVerificationByUrl(userId, contentLanguage, phrase, fileUrl
|
583
|
+
def videoVerificationByUrl(userId, contentLanguage, phrase, fileUrl)
|
591
584
|
return RestClient::Request.new(
|
592
585
|
:method => :post,
|
593
586
|
:url => @BASE_URL.to_s + 'verification/video/byUrl',
|
@@ -601,7 +594,6 @@ class VoiceIt2
|
|
601
594
|
:phrase => phrase,
|
602
595
|
:userId => userId,
|
603
596
|
:contentLanguage => contentLanguage,
|
604
|
-
:doBlinkDetection => doBlinkDetection,
|
605
597
|
:fileUrl => fileUrl
|
606
598
|
}).execute
|
607
599
|
rescue => e
|
@@ -660,7 +652,7 @@ class VoiceIt2
|
|
660
652
|
end
|
661
653
|
end
|
662
654
|
|
663
|
-
def faceIdentification(groupId, filePath
|
655
|
+
def faceIdentification(groupId, filePath)
|
664
656
|
return RestClient::Request.new(
|
665
657
|
:method => :post,
|
666
658
|
:url => @BASE_URL.to_s + 'identification/face',
|
@@ -672,7 +664,6 @@ class VoiceIt2
|
|
672
664
|
:payload => {
|
673
665
|
:multipart => true,
|
674
666
|
:groupId => groupId,
|
675
|
-
:doBlinkDetection => doBlinkDetection,
|
676
667
|
:video => File.new(filePath, 'rb')
|
677
668
|
}).execute
|
678
669
|
rescue => e
|
@@ -683,7 +674,7 @@ class VoiceIt2
|
|
683
674
|
end
|
684
675
|
end
|
685
676
|
|
686
|
-
def faceIdentificationByUrl(groupId,fileUrl
|
677
|
+
def faceIdentificationByUrl(groupId,fileUrl)
|
687
678
|
return RestClient::Request.new(
|
688
679
|
:method => :post,
|
689
680
|
:url => @BASE_URL.to_s + 'identification/face/byUrl',
|
@@ -695,14 +686,13 @@ class VoiceIt2
|
|
695
686
|
:payload => {
|
696
687
|
:multipart => true,
|
697
688
|
:groupId => groupId,
|
698
|
-
:doBlinkDetection => doBlinkDetection,
|
699
689
|
:fileUrl => fileUrl
|
700
690
|
}).execute
|
701
691
|
rescue => e
|
702
692
|
e.response
|
703
693
|
end
|
704
694
|
|
705
|
-
def videoIdentification(groupId, contentLanguage, phrase, filePath
|
695
|
+
def videoIdentification(groupId, contentLanguage, phrase, filePath)
|
706
696
|
return RestClient::Request.new(
|
707
697
|
:method => :post,
|
708
698
|
:url => @BASE_URL.to_s + 'identification/video',
|
@@ -716,7 +706,6 @@ class VoiceIt2
|
|
716
706
|
:phrase => phrase,
|
717
707
|
:groupId => groupId,
|
718
708
|
:contentLanguage => contentLanguage,
|
719
|
-
:doBlinkDetection => doBlinkDetection,
|
720
709
|
:video => File.new(filePath, 'rb')
|
721
710
|
}).execute
|
722
711
|
rescue => e
|
@@ -727,7 +716,7 @@ class VoiceIt2
|
|
727
716
|
end
|
728
717
|
end
|
729
718
|
|
730
|
-
def videoIdentificationByUrl(groupId, contentLanguage, phrase, fileUrl
|
719
|
+
def videoIdentificationByUrl(groupId, contentLanguage, phrase, fileUrl)
|
731
720
|
return RestClient::Request.new(
|
732
721
|
:method => :post,
|
733
722
|
:url => @BASE_URL.to_s + 'identification/video/byUrl',
|
@@ -741,7 +730,6 @@ class VoiceIt2
|
|
741
730
|
:phrase => phrase,
|
742
731
|
:groupId => groupId,
|
743
732
|
:contentLanguage => contentLanguage,
|
744
|
-
:doBlinkDetection => doBlinkDetection,
|
745
733
|
:fileUrl => fileUrl
|
746
734
|
}).execute
|
747
735
|
rescue => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: VoiceIt2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- StephenAkers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A wrapper for VoiceIt API 2
|
14
14
|
email: stephen@voiceit.io
|