Spaces:
Runtime error
Runtime error
File size: 6,327 Bytes
66ca64a f02b1de 66ca64a f02b1de 66ca64a f02b1de 66ca64a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 |
openapi: 3.0.0
info:
title: woolbot's FunAPI
description: Collection of APIs for bots or just fun by @podvaljoey.
version: 0.1.103
servers:
- url: 'https://imperialwool-funapi.hf.space/'
description: First path, public.
- url: 'https://funapi.dnszilla.bar/'
description: Second path, private.
paths:
/recognize/api/v1/voice:
get:
tags:
- Recognize API
parameters:
- name: 'url'
description: URL-link to voice message. Should be mp3, ogg or wav.
in: 'query'
schema:
type: 'string'
example: https://cdn-102.anonfiles.com/q8v0o5O5y8/3d62dac1-1671893935/j4893hg894g4.mp3
- name: 'extendInfo'
description: Provide additional information or not.
in: 'query'
schema:
type: 'string'
default: False
example: False
- name: 'signature'
description: Special access key.
in: 'query'
schema:
type: 'string'
summary: "This method can help with converting voice into the text."
responses:
200:
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/RecognizeResult"
400:
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorObject"
post:
tags:
- Recognize API
parameters:
- name: 'url'
description: URL-link to voice message. Should be mp3, ogg or wav.
in: 'query'
schema:
type: 'string'
example: https://cdn-102.anonfiles.com/q8v0o5O5y8/3d62dac1-1671893935/j4893hg894g4.mp3
- name: 'file'
description: Upload file to recognize voice. **NOT SUPPORTED NOW**
in: 'query'
schema:
type: 'string'
- name: 'extendInfo'
description: Provide additional information or not.
in: 'query'
schema:
type: 'string'
default: False
example: False
- name: 'signature'
description: Special access key.
in: 'query'
schema:
type: 'string'
summary: "This method can help with converting voice into the text."
responses:
200:
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/RecognizeResult"
400:
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorObject"
/yt/api/v1/search:
get:
tags:
- "Youtube: Becoming Music Platform"
parameters:
- name: 'query'
description: Query for YouTube to find videos.
in: 'query'
schema:
type: 'string'
example: never gonna give you up
- name: 'signature'
description: Special access key.
in: 'query'
schema:
type: 'string'
summary: "This method can help with searching videos on YouTube."
responses:
200:
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/YTSearchResult"
400:
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorObject"
post:
tags:
- "Youtube: Becoming Music Platform"
parameters:
- name: 'query'
description: Query for YouTube to find videos.
in: 'query'
schema:
type: 'string'
example: never gonna give you up
- name: 'signature'
description: Special access key.
in: 'query'
schema:
type: 'string'
summary: "This method can help with searching videos on YouTube."
responses:
200:
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/YTSearchResult"
400:
description: Bad Request
content:
application/json:
schema:
$ref: "#/components/schemas/ErrorObject"
components:
schemas:
ErrorObject:
type: object
properties:
status:
type: string
example: error
details:
type: object
properties:
error_code:
type: int
example: 103
error_details:
type: string
example: No signature
RecognizeResult:
type: object
properties:
status:
type: string
example: ok
result:
type: string
example: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean condimentum neque quis enim bibendum, ut molestie magna gravida. Donec et felis eget lacus sodales convallis. Quisque vitae erat et leo lobortis iaculis. Maecenas a lectus vitae metus fringilla luctus. Morbi sed pellentesque elit. Phasellus bibendum et urna sed elementum. Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus."
YTSearchResult:
type: object
properties:
status:
type: string
example: ok
query:
type: string
example: never gonna give you up
videoIds:
type: object
properties:
"0":
type: string
example: dQw4w9WgXcQ
"1":
type: string
example: GtL1huin9EE
"2":
type: string
example: uXV-IaR_vNE |