Clad3815 / Twitch-Streamer-GPT

Twitch Streamer GPT is a NodeJS-based Twitch enhancement tool, offering interactive stream experiences with AI-powered automated responses, voice command activations, and advanced modules. It's easy to set up and suited for users of all tech levels.
43 stars 16 forks source link

Soucis d'installation #6

Closed lemrgrand closed 1 year ago

lemrgrand commented 1 year ago

Bonjour, j'ai un soucis lors de l'installation: No history file found Error loading wake word: Error: No model file found Failed to initialize: TypeError: Cannot read properties of undefined (reading 'frameLength') H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\modules\openaiLib.js:67 throw new Error("Voice not found"); ^

Error: Voice not found at Object.initVoice (H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\modules\openaiLib.js:67:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.5.1

H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main>

J'ai bien mis le fichier en .env

Clad3815 commented 1 year ago

Tu as bien rempli comme il faut le fichier .env ? On dirait qu'il te manque des configurations

lemrgrand commented 1 year ago

Je pense que oui. Je vois pas ce que j'ai oublié.

Clad3815 commented 1 year ago

Tu as bien tous les fichiers nécessaire dans les dossier ? Le / les fichiers ppn, les mp3 etc ... ?

lemrgrand commented 1 year ago

Bah ouais je vois bien le ppn dans le dossier wake word, les mp3 dans wait_mp3 et dans les wake word answer

Clad3815 commented 1 year ago

Peut être un problème de droit dans le dossier ? Si le script n'a pas les droits d'accès aux fichiers

lemrgrand commented 1 year ago

Pourtant c'est lancé en admin

lemrgrand commented 1 year ago

Y'a du changement, je viens de verifier mais : No history file found Wake word loaded Using microphone device: Microphone (Voicemod Virtual Audio Device (WDM)) | Wrong device? Run npm run choose-mic to select the correct input. Please turn on microphone. Press any key to start 5 seconds of silence for calibration... H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\modules\openaiLib.js:67 throw new Error("Voice not found"); ^

Error: Voice not found at Object.initVoice (H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\modules\openaiLib.js:67:15) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Node.js v20.5.1

Clad3815 commented 1 year ago

Il faut que tu regardes le "voice_id" de elevenlabs, il a l'air incorrect

lemrgrand commented 1 year ago

okay la boulette, j'ai mis un " de trop

lemrgrand commented 1 year ago

Maintenant ca marche mais pas de reaction aprés le wake word :-(

Clad3815 commented 1 year ago

Il faut que le bot twitch soit lancé car ça envoi une requête. Sinon montre moi ce que ça affiche dans la fenêtre après le wake word

lemrgrand commented 1 year ago

Soit rien, soit: Transcripting recording Error during transcription: Error: Request failed with status code 429

H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\node_modules\axios\dist\node\axios.cjs:836 AxiosError.call(axiosError, error.message, code, config, request, response); ^ AxiosError [AggregateError] at AxiosError.from (H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\node_modules\axios\dist\node\axios.cjs:836:14) at RedirectableRequest.handleRequestError (H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\node_modules\axios\dist\node\axios.cjs:3010:25) at RedirectableRequest.emit (node:events:514:28) at eventHandlers. (H:\down\Twitch-Streamer-GPT-main\Twitch-Streamer-GPT-main\node_modules\follow-redirects\index.js:14:24) at ClientRequest.emit (node:events:514:28) at Socket.socketErrorListener (node:_http_client:495:9) at Socket.emit (node:events:514:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { code: 'ECONNREFUSED', errors: [ Error: connect ECONNREFUSED ::1:3048 at createConnectionError (node:net:1634:14) at afterConnectMultiple (node:net:1664:40) { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '::1', port: 3048 }, Error: connect ECONNREFUSED 127.0.0.1:3048 at createConnectionError (node:net:1634:14) at afterConnectMultiple (node:net:1664:40) { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 3048 } ], config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [ 'xhr', 'http' ], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, env: { FormData: [Function: FormData] { LINE_BREAK: '\r\n', DEFAULT_CONTENT_TYPE: 'application/octet-stream' }, Blob: [class Blob] }, validateStatus: [Function: validateStatus], headers: AxiosHeaders { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json', 'User-Agent': 'axios/1.4.0', 'Content-Length': '2', 'Accept-Encoding': 'gzip, compress, deflate, br' }, method: 'post', url: 'http://localhost:3048/transcription', data: '{}' }, request: <ref *2> Writable { _writableState: WritableState { objectMode: false, highWaterMark: 16384, finalCalled: false, needDrain: false, ending: false, ended: false, finished: false, destroyed: false, decodeStrings: true, defaultEncoding: 'utf8', length: 0, writing: false, corked: 0, sync: true, bufferProcessing: false, onwrite: [Function: bound onwrite], writecb: null, writelen: 0, afterWriteTickInfo: null, buffered: [], bufferedIndex: 0, allBuffers: true, allNoop: true, pendingcb: 0, constructed: true, prefinished: false, errorEmitted: false, emitClose: true, autoDestroy: true, errored: null, closed: false, closeEmitted: false,

},
_events: [Object: null prototype] {
  response: [Function: handleResponse],
  error: [Function: handleRequestError],
  socket: [Function: handleRequestSocket]
},
_eventsCount: 3,
_maxListeners: undefined,
_options: {
  maxRedirects: 21,
  maxBodyLength: Infinity,
  protocol: 'http:',
  path: '/transcription',
  method: 'POST',
  headers: [Object: null prototype] {
    Accept: 'application/json, text/plain, */*',
    'Content-Type': 'application/json',
    'User-Agent': 'axios/1.4.0',
    'Content-Length': '2',
    'Accept-Encoding': 'gzip, compress, deflate, br'
  },
  agents: { http: undefined, https: undefined },
  auth: undefined,
  family: undefined,
  lookup: undefined,
  beforeRedirect: [Function: dispatchBeforeRedirect],
  beforeRedirects: { proxy: [Function: beforeRedirect] },
  hostname: 'localhost',
  port: '3048',
  agent: undefined,
  nativeProtocols: {
    'http:': {
      _connectionListener: [Function: connectionListener],
      METHODS: [
        'ACL',         'BIND',       'CHECKOUT',
        'CONNECT',     'COPY',       'DELETE',
        'GET',         'HEAD',       'LINK',
        'LOCK',        'M-SEARCH',   'MERGE',
        'MKACTIVITY',  'MKCALENDAR', 'MKCOL',
        'MOVE',        'NOTIFY',     'OPTIONS',
        'PATCH',       'POST',       'PROPFIND',
        'PROPPATCH',   'PURGE',      'PUT',
        'REBIND',      'REPORT',     'SEARCH',
        'SOURCE',      'SUBSCRIBE',  'TRACE',
        'UNBIND',      'UNLINK',     'UNLOCK',
        'UNSUBSCRIBE'
      ],
      STATUS_CODES: {
        '100': 'Continue',
        '101': 'Switching Protocols',
        '102': 'Processing',
        '103': 'Early Hints',
        '200': 'OK',
        '201': 'Created',
        '202': 'Accepted',
        '203': 'Non-Authoritative Information',
        '204': 'No Content',
        '205': 'Reset Content',
        '206': 'Partial Content',
        '207': 'Multi-Status',
        '208': 'Already Reported',
        '226': 'IM Used',
        '300': 'Multiple Choices',
        '301': 'Moved Permanently',
        '302': 'Found',
        '303': 'See Other',
        '304': 'Not Modified',
        '305': 'Use Proxy',
        '307': 'Temporary Redirect',
        '308': 'Permanent Redirect',
        '400': 'Bad Request',
        '401': 'Unauthorized',
        '402': 'Payment Required',
        '403': 'Forbidden',
        '404': 'Not Found',
        '405': 'Method Not Allowed',
        '406': 'Not Acceptable',
        '407': 'Proxy Authentication Required',
        '408': 'Request Timeout',
        '409': 'Conflict',
        '410': 'Gone',
        '411': 'Length Required',
        '412': 'Precondition Failed',
        '413': 'Payload Too Large',
        '414': 'URI Too Long',
        '415': 'Unsupported Media Type',
        '416': 'Range Not Satisfiable',
        '417': 'Expectation Failed',
        '418': "I'm a Teapot",
        '421': 'Misdirected Request',
        '422': 'Unprocessable Entity',
        '423': 'Locked',
        '424': 'Failed Dependency',
        '425': 'Too Early',
        '426': 'Upgrade Required',
        '428': 'Precondition Required',
        '429': 'Too Many Requests',
        '431': 'Request Header Fields Too Large',
        '451': 'Unavailable For Legal Reasons',
        '500': 'Internal Server Error',
        '501': 'Not Implemented',
        '502': 'Bad Gateway',
        '503': 'Service Unavailable',
        '504': 'Gateway Timeout',
        '505': 'HTTP Version Not Supported',
        '506': 'Variant Also Negotiates',
        '507': 'Insufficient Storage',
        '508': 'Loop Detected',
        '509': 'Bandwidth Limit Exceeded',
        '510': 'Not Extended',
        '511': 'Network Authentication Required'
      },
      Agent: [Function: Agent] { defaultMaxSockets: Infinity },
      ClientRequest: [Function: ClientRequest],
      IncomingMessage: [Function: IncomingMessage],
      OutgoingMessage: [Function: OutgoingMessage],
      Server: [Function: Server],
      ServerResponse: [Function: ServerResponse],
      createServer: [Function: createServer],
      validateHeaderName: [Function: __node_internal_],
      validateHeaderValue: [Function: __node_internal_],
      get: [Function: get],
      request: [Function: request],
      setMaxIdleHTTPParsers: [Function: setMaxIdleHTTPParsers],
      maxHeaderSize: [Getter],
      globalAgent: [Getter/Setter]
    },
    'https:': {
      Agent: [Function: Agent],
      globalAgent: Agent {
        _events: [Object: null prototype],
        _eventsCount: 2,
        _maxListeners: undefined,
        defaultPort: 443,
        protocol: 'https:',
        options: [Object: null prototype],
        requests: [Object: null prototype] {},
        sockets: [Object: null prototype] {},
        freeSockets: [Object: null prototype],
        keepAliveMsecs: 1000,
        keepAlive: true,
        maxSockets: Infinity,
        maxFreeSockets: 256,
        scheduling: 'lifo',
        maxTotalSockets: Infinity,
        totalSocketCount: 1,
        maxCachedSessions: 100,
        _sessionCache: [Object],
        [Symbol(kCapture)]: false
      },
      Server: [Function: Server],
      createServer: [Function: createServer],
      get: [Function: get],
      request: [Function: request]
    }
  },
  pathname: '/transcription'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 2,
_requestBodyBuffers: [
  {
    data: Buffer(2) [Uint8Array] [ 123, 125 ],
    encoding: undefined
  }
],
_onNativeResponse: [Function (anonymous)],
_currentRequest: <ref *1> ClientRequest {
  _events: [Object: null prototype] {
    response: [Function: bound onceWrapper] {
      listener: [Function (anonymous)]
    },
    abort: [Function (anonymous)],
    aborted: [Function (anonymous)],
    connect: [Function (anonymous)],
    error: [Function (anonymous)],
    socket: [Function (anonymous)],
    timeout: [Function (anonymous)]
  },
  _eventsCount: 7,
  _maxListeners: undefined,
  outputData: [],
  outputSize: 0,
  writable: true,
  destroyed: false,
  _last: false,
  chunkedEncoding: false,
  shouldKeepAlive: true,
  maxRequestsOnConnectionReached: false,
  _defaultKeepAlive: true,
  useChunkedEncodingByDefault: true,
  sendDate: false,
  _removedConnection: false,
  _removedContLen: false,
  _removedTE: false,
  strictContentLength: false,
  _contentLength: '2',
  _hasBody: true,
  _trailer: '',
  finished: false,
  _headerSent: true,
  _closed: false,
  socket: Socket {
    connecting: false,
    _hadError: true,
    _parent: null,
    _host: 'localhost',
    _closeAfterHandlingError: false,
    _readableState: ReadableState {
      objectMode: false,
      highWaterMark: 16384,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: [],
      flowing: true,
      ended: false,
      endEmitted: false,
      reading: false,
      constructed: true,
      sync: false,
      needReadable: true,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: false,
      errorEmitted: true,
      emitClose: false,
      autoDestroy: true,
      destroyed: true,
      errored: AggregateError
          at internalConnectMultiple (node:net:1114:18)
          at afterConnectMultiple (node:net:1667:5) {
        code: 'ECONNREFUSED',
        [errors]: [Array]
      },
      closed: true,
      closeEmitted: true,
      defaultEncoding: 'utf8',
      awaitDrainWriters: null,
      multiAwaitDrain: false,
      readingMore: false,
      dataEmitted: false,
      decoder: null,
      encoding: null,
      [Symbol(kPaused)]: false
    },
    _events: [Object: null prototype] {
      end: [Function: onReadableStreamEnd],
      connect: [ [Function], [Function], [Function] ],
      free: [Function: onFree],
      close: [
        [Function: onClose],
        [Function: socketCloseListener],
        [Function]
      ],
      timeout: [ [Function: onTimeout], [Function] ],
      agentRemove: [Function: onRemove],
      error: [Function: socketErrorListener],
      drain: [Function: ondrain]
    },
    _eventsCount: 8,
    _maxListeners: undefined,
    _writableState: WritableState {
      objectMode: false,
      highWaterMark: 16384,
      finalCalled: false,
      needDrain: false,
      ending: false,
      ended: false,
      finished: false,
      destroyed: true,
      decodeStrings: false,
      defaultEncoding: 'utf8',
      length: 245,
      writing: true,
      corked: 0,
      sync: false,
      bufferProcessing: false,
      onwrite: [Function: bound onwrite],
      writecb: [Function (anonymous)],
      writelen: 245,
      afterWriteTickInfo: null,
      buffered: [],
      bufferedIndex: 0,
      allBuffers: true,
      allNoop: true,
      pendingcb: 1,
      constructed: true,
      prefinished: false,
      errorEmitted: true,
      emitClose: false,
      autoDestroy: true,
      errored: AggregateError
          at internalConnectMultiple (node:net:1114:18)
          at afterConnectMultiple (node:net:1667:5) {
        code: 'ECONNREFUSED',
        [errors]: [Array]
      },
      closed: true,
      closeEmitted: true,
      [Symbol(kOnFinished)]: []
    },
    allowHalfOpen: false,
    _sockname: null,
    _pendingData: [
      {
        chunk: 'POST /transcription HTTP/1.1\r\n' +
          'Accept: application/json, text/plain, */*\r\n' +
          'Content-Type: application/json\r\n' +
          'User-Agent: axios/1.4.0\r\n' +
          'Content-Length: 2\r\n' +
          'Accept-Encoding: gzip, compress, deflate, br\r\n' +
          'Host: localhost:3048\r\n' +
          'Connection: keep-alive\r\n' +
          '\r\n',
        encoding: 'latin1',
        callback: [Function: nop]
      },
      {
        chunk: [Buffer [Uint8Array]],
        encoding: 'buffer',
        callback: [Function (anonymous)]
      },
      allBuffers: false
    ],
    _pendingEncoding: '',
    server: null,
    _server: null,
    timeout: 5000,
    parser: null,
    _httpMessage: [Circular *1],
    autoSelectFamilyAttemptedAddresses: [ '::1:3048', '127.0.0.1:3048' ],
    [Symbol(async_id_symbol)]: 791,
    [Symbol(kHandle)]: null,
    [Symbol(lastWriteQueueSize)]: 0,
    [Symbol(timeout)]: Timeout {
      _idleTimeout: -1,
      _idlePrev: null,
      _idleNext: null,
      _idleStart: 21322,
      _onTimeout: null,
      _timerArgs: undefined,
      _repeat: null,
      _destroyed: true,
      [Symbol(refed)]: false,
      [Symbol(kHasPrimitive)]: false,
      [Symbol(asyncId)]: 783,
      [Symbol(triggerId)]: 0
    },
    [Symbol(kBuffer)]: null,
    [Symbol(kBufferCb)]: null,
    [Symbol(kBufferGen)]: null,
    [Symbol(kCapture)]: false,
    [Symbol(kSetNoDelay)]: true,
    [Symbol(kSetKeepAlive)]: true,
    [Symbol(kSetKeepAliveInitialDelay)]: 60,
    [Symbol(kBytesRead)]: 0,
    [Symbol(kBytesWritten)]: 0
  },
  _header: 'POST /transcription HTTP/1.1\r\n' +
    'Accept: application/json, text/plain, */*\r\n' +
    'Content-Type: application/json\r\n' +
    'User-Agent: axios/1.4.0\r\n' +
    'Content-Length: 2\r\n' +
    'Accept-Encoding: gzip, compress, deflate, br\r\n' +
    'Host: localhost:3048\r\n' +
    'Connection: keep-alive\r\n' +
    '\r\n',
  _keepAliveTimeout: 0,
  _onPendingData: [Function: nop],
  agent: Agent {
    _events: [Object: null prototype] {
      free: [Function (anonymous)],
      newListener: [Function: maybeEnableKeylog]
    },
    _eventsCount: 2,
    _maxListeners: undefined,
    defaultPort: 80,
    protocol: 'http:',
    options: [Object: null prototype] {
      keepAlive: true,
      scheduling: 'lifo',
      timeout: 5000,
      noDelay: true,
      path: null
    },
    requests: [Object: null prototype] {},
    sockets: [Object: null prototype] { 'localhost:3048:': [ [Socket] ] },
    freeSockets: [Object: null prototype] {},
    keepAliveMsecs: 1000,
    keepAlive: true,
    maxSockets: Infinity,
    maxFreeSockets: 256,
    scheduling: 'lifo',
    maxTotalSockets: Infinity,
    totalSocketCount: 1,
    [Symbol(kCapture)]: false
  },
  socketPath: undefined,
  method: 'POST',
  maxHeaderSize: undefined,
  insecureHTTPParser: undefined,
  joinDuplicateHeaders: undefined,
  path: '/transcription',
  _ended: false,
  res: null,
  aborted: false,
  timeoutCb: [Function: emitRequestTimeout],
  upgradeOrConnect: false,
  parser: null,
  maxHeadersCount: null,
  reusedSocket: false,
  host: 'localhost',
  protocol: 'http:',
  _redirectable: [Circular *2],
  [Symbol(kCapture)]: false,
  [Symbol(kBytesWritten)]: 0,
  [Symbol(kNeedDrain)]: false,
  [Symbol(corked)]: 0,
  [Symbol(kOutHeaders)]: [Object: null prototype] {
    accept: [ 'Accept', 'application/json, text/plain, */*' ],
    'content-type': [ 'Content-Type', 'application/json' ],
    'user-agent': [ 'User-Agent', 'axios/1.4.0' ],
    'content-length': [ 'Content-Length', '2' ],
    'accept-encoding': [ 'Accept-Encoding', 'gzip, compress, deflate, br' ],
    host: [ 'Host', 'localhost:3048' ]
  },
  [Symbol(errored)]: null,
  [Symbol(kHighWaterMark)]: 16384,
  [Symbol(kRejectNonStandardBodyWrites)]: false,
  [Symbol(kUniqueHeaders)]: null
},
_currentUrl: 'http://localhost:3048/transcription',
[Symbol(kCapture)]: false

}, cause: AggregateError at internalConnectMultiple (node:net:1114:18) at afterConnectMultiple (node:net:1667:5) { code: 'ECONNREFUSED',

  Error: connect ECONNREFUSED ::1:3048
      at createConnectionError (node:net:1634:14)
      at afterConnectMultiple (node:net:1664:40) {
    errno: -4078,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '::1',
    port: 3048
  },
  Error: connect ECONNREFUSED 127.0.0.1:3048
      at createConnectionError (node:net:1634:14)
      at afterConnectMultiple (node:net:1664:40) {
    errno: -4078,
    code: 'ECONNREFUSED',
    syscall: 'connect',
    address: '127.0.0.1',
    port: 3048
  }
]

} }

Node.js v20.5.1

Clad3815 commented 1 year ago

Tu as bien le deuxième bot (twitch) de lancé ? Car là il n'arrive pas à faire la requête

lemrgrand commented 1 year ago

image

lemrgrand commented 1 year ago

Ou des fois il bloque dessus.

lemrgrand commented 1 year ago

ah et maintenant image

lemrgrand commented 1 year ago

Okay je viens de comprendre, c'est mon abonnement CHAT GPT

Clad3815 commented 1 year ago

Je peux fermer l'issue ?

lemrgrand commented 1 year ago

Yep, merci <3